public abstract class BoxCollaborator.Info extends BoxResource.Info
Constructor and Description |
---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt()
Gets the date that the collaborator was created.
|
BoxCollaborator.GroupType |
getGroupType()
Gets the group type for the collaborator if the collaborator is a group.
|
String |
getLogin()
Gets the login for the collaborator if the collaborator is a user.
|
Date |
getModifiedAt()
Gets the date that the collaborator was modified.
|
String |
getName()
Gets the name of the collaborator.
|
BoxCollaborator.CollaboratorType |
getType()
Gets the type of the collaborator.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setName(String name)
Sets the name of the collaborator.
|
getID, getResource
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public BoxCollaborator.CollaboratorType getType()
public String getName()
public void setName(String name)
name
- the new name of the collaborator.public Date getCreatedAt()
public Date getModifiedAt()
public String getLogin()
public BoxCollaborator.GroupType getGroupType()
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.