public class BoxGroupMembership.Info extends BoxResource.Info
Constructor and Description |
---|
BoxGroupMembership.Info()
Constructs an empty Info object.
|
BoxGroupMembership.Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt()
Gets the time the group membership was created.
|
BoxGroup.Info |
getGroup()
Gets the group the user belongs to.
|
Date |
getModifiedAt()
Gets the time the group membership was last modified.
|
BoxGroupMembership |
getResource()
Gets the resource associated with this Info.
|
BoxGroupMembership.Role |
getRole()
Gets the level of access the user has.
|
BoxUser.Info |
getUser()
Gets the user belonging to the group.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setRole(BoxGroupMembership.Role role)
Sets the level of access the user has.
|
getID
clearPendingChanges, getPendingChanges
public BoxGroupMembership.Info()
public BoxGroupMembership.Info(String json)
json
- the JSON string to parse.public BoxUser.Info getUser()
Note: the BoxUser.Info returned by this method will only have the ID, name, and login fields populated.
public BoxGroup.Info getGroup()
Note: the BoxGroup.Info returned by this method will only have the ID and name fields populated.
public BoxGroupMembership.Role getRole()
public void setRole(BoxGroupMembership.Role role)
role
- the new level of access to give the user.public Date getCreatedAt()
public Date getModifiedAt()
public BoxGroupMembership 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.