Package com.independentsoft.graph

# Class UploadResult

java.lang.Object
com.independentsoft.graph.UploadResult

public class UploadResult extends Object
Holds the result of a resumable upload: the created drive item (available once the upload completes) and the final upload session state.

See Also:
  `GraphClient.uploadDriveItemWithProgress(UploadSession, java.io.InputStream, int, UploadProgressListener)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UploadResult()`
  `UploadResult​(DriveItem driveItem, UploadSession uploadSession)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DriveItem`
  `getDriveItem()`
  Gets the uploaded drive item.
  `UploadSession`
  `getUploadSession()`
  Gets the current upload session state, including the next expected ranges.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UploadResult

    public UploadResult()

  - ### UploadResult

    public UploadResult​(DriveItem driveItem, UploadSession uploadSession)

- ## Method Details

  - ### getDriveItem

    public DriveItem getDriveItem()
    Gets the uploaded drive item. This is null until the upload has completed.
    Returns:
      The uploaded DriveItem, or null if the upload is not yet complete

  - ### getUploadSession

    public UploadSession getUploadSession()
    Gets the current upload session state, including the next expected ranges.
    Returns:
      The UploadSession state