public class BoxComment.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 time the comment was created.
|
BoxUser.Info |
getCreatedBy()
Gets info about the user who created the comment.
|
boolean |
getIsReplyComment()
Gets whether or not the comment is a reply to another comment.
|
BoxResource.Info |
getItem()
Gets info about the item this comment is attached to.
|
String |
getMessage()
Gets the comment's message.
|
Date |
getModifiedAt()
Gets the time the comment was last modified.
|
BoxUser.Info |
getModifiedBy()
Gets info about the user who last modified the comment.
|
BoxComment |
getResource()
Gets the resource associated with this Info.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
void |
setMessage(String message)
Sets the comment's message.
|
getID
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Info()
public boolean getIsReplyComment()
public String getMessage()
public void setMessage(String message)
message
- the comment's new message.public BoxUser.Info getCreatedBy()
public Date getCreatedAt()
public BoxResource.Info getItem()
BoxFile
.public BoxUser.Info getModifiedBy()
public Date getModifiedAt()
public BoxComment 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.