Class UploadSessionCursor

java.lang.Object
com.dropbox.core.v2.files.UploadSessionCursor

public class UploadSessionCursor extends Object
  • Field Details

    • sessionId

      @Nonnull protected final String sessionId
    • offset

      protected final long offset
  • Constructor Details

    • UploadSessionCursor

      public UploadSessionCursor(@Nonnull String sessionId, long offset)
      Parameters:
      sessionId - The upload session ID (returned by DbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg)). Must not be null.
      offset - Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getSessionId

      @Nonnull public String getSessionId()
      The upload session ID (returned by DbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg)).
      Returns:
      value for this field, never null.
    • getOffset

      public long getOffset()
      Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or duplicated in the event of a network error.
      Returns:
      value for this field.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object