public class BoxCollaboration.Info extends BoxResource.Info
Constructor and Description |
---|
BoxCollaboration.Info()
Constructs an empty Info object.
|
BoxCollaboration.Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
BoxCollaborator.Info |
getAccessibleBy()
Gets the collaborator who this collaboration applies to.
|
Date |
getAcknowledgedAt()
Gets the time the collaboration's status was changed.
|
Date |
getCreatedAt()
Gets the time the collaboration was created.
|
BoxUser.Info |
getCreatedBy()
Gets the user who created the collaboration.
|
Date |
getExpiresAt()
Gets the time the collaboration will expire.
|
BoxFolder.Info |
getItem()
Gets the folder the collaboration is related to.
|
Date |
getModifiedAt()
Gets the time the collaboration was last modified.
|
BoxCollaboration |
getResource()
Gets the resource associated with this Info.
|
BoxCollaboration.Role |
getRole()
Gets the level of access the collaborator has.
|
BoxCollaboration.Status |
getStatus()
Gets the status of the collaboration.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setRole(BoxCollaboration.Role role)
Sets the level of access the collaborator has.
|
void |
setStatus(BoxCollaboration.Status status)
Sets the status of the collaboration in order to accept or reject the collaboration if it's pending.
|
getID
clearPendingChanges, getPendingChanges
public BoxCollaboration.Info()
public BoxCollaboration.Info(String json)
json
- the JSON string to parse.public BoxUser.Info getCreatedBy()
public Date getCreatedAt()
public Date getModifiedAt()
public Date getExpiresAt()
public BoxCollaboration.Status getStatus()
public void setStatus(BoxCollaboration.Status status)
status
- the new status of the collaboration.public BoxCollaborator.Info getAccessibleBy()
public BoxCollaboration.Role getRole()
public void setRole(BoxCollaboration.Role role)
role
- the new level of access to give the collaborator.public Date getAcknowledgedAt()
public BoxFolder.Info getItem()
public BoxCollaboration getResource()
BoxResource.Info
getResource
in class BoxResource.Info
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.