public class UploadSessionCursor extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
offset |
protected String |
sessionId |
Constructor and Description |
---|
UploadSessionCursor(String sessionId,
long offset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getOffset()
The amount of data that has been uploaded so far.
|
String |
getSessionId()
The upload session ID (returned by
DbxUserFilesRequests.uploadSessionStart(boolean) ). |
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String sessionId
protected final long offset
public UploadSessionCursor(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.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getSessionId()
DbxUserFilesRequests.uploadSessionStart(boolean)
).null
.public long getOffset()
public String toStringMultiline()
The returned String may contain newlines.