public class UploadSessionCursor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
offset |
protected java.lang.String |
sessionId |
Constructor and Description |
---|
UploadSessionCursor(java.lang.String sessionId,
long offset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getOffset()
The amount of data that has been uploaded so far.
|
java.lang.String |
getSessionId()
The upload session ID (returned by
DbxUserFilesRequests.uploadSessionStart(boolean) ). |
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String sessionId
protected final long offset
public UploadSessionCursor(java.lang.String sessionId, long offset)
sessionId
- The upload session ID (returned by DbxUserFilesRequests.uploadSessionStart(boolean)
). Must not be
null
.offset
- The amount of data that has been uploaded so far. We use
this to make sure upload data isn't lost or duplicated in the event
of a network error.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getSessionId()
DbxUserFilesRequests.uploadSessionStart(boolean)
).null
.public long getOffset()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.