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 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