public class BoxFileUploadSession.Info extends BoxResource.Info
Constructor and Description |
---|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
int |
getPartSize()
Returns the size of the each part.
|
int |
getPartsProcessed()
Returns the parts that are processed so for.
|
BoxFileUploadSession |
getResource()
Returns the BoxFileUploadSession isntance to which this object belongs to.
|
BoxFileUploadSession.Endpoints |
getSessionEndpoints()
Returns the session endpoints that can be called for this upload session.
|
Date |
getSessionExpiresAt()
Returns the date and time at which the upload session expires.
|
int |
getTotalParts()
Returns the total parts of the file that is uploaded in the upload session.
|
String |
getUploadSessionId()
Returns the upload session id.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxFileUploadSession getResource()
getResource
in class BoxResource.Info
public int getTotalParts()
public int getPartsProcessed()
public Date getSessionExpiresAt()
public String getUploadSessionId()
public BoxFileUploadSession.Endpoints getSessionEndpoints()
public int getPartSize()
protected void parseJSONMember(JsonObject.Member member)
BoxJSONObject
Subclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
member
- the JSON member to be parsed.