public class BoxComment extends BoxEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
static java.lang.String |
FIELD_CREATED_AT |
static java.lang.String |
FIELD_CREATED_BY |
static java.lang.String |
FIELD_IS_REPLY_COMMENT |
static java.lang.String |
FIELD_ITEM |
static java.lang.String |
FIELD_MESSAGE |
static java.lang.String |
FIELD_MODIFIED_AT |
static java.lang.String |
FIELD_TAGGED_MESSAGE |
static java.lang.String |
TYPE |
FIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPEmProperties| Constructor and Description |
|---|
BoxComment()
Constructs an empty BoxComment object.
|
BoxComment(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxComment with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreatedAt()
Gets the time the comment was created.
|
BoxUser |
getCreatedBy()
Gets info about the user who created the comment.
|
java.lang.Boolean |
getIsReplyComment()
Gets whether or not the comment is a reply to another comment.
|
BoxItem |
getItem()
Gets info about the item this comment is attached to.
|
java.lang.String |
getMessage()
Gets the comment's message.
|
java.util.Date |
getModifiedAt()
Gets the time the comment was last modified.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
createEntityFromJson, createEntityFromJson, getId, getTypecreateFromJson, createFromJson, getPropertiesAsHashMap, parseJsonObject, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String TYPE
public static final java.lang.String FIELD_IS_REPLY_COMMENT
public static final java.lang.String FIELD_MESSAGE
public static final java.lang.String FIELD_TAGGED_MESSAGE
public static final java.lang.String FIELD_CREATED_BY
public static final java.lang.String FIELD_CREATED_AT
public static final java.lang.String FIELD_ITEM
public static final java.lang.String FIELD_MODIFIED_AT
public static final java.lang.String[] ALL_FIELDS
public BoxComment()
public BoxComment(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the objectpublic java.lang.Boolean getIsReplyComment()
public java.lang.String getMessage()
public BoxUser getCreatedBy()
public java.util.Date getCreatedAt()
public BoxItem getItem()
BoxFile or BoxBookmark.public java.util.Date getModifiedAt()
protected void parseJSONMember(JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxEntitymember - the JSON member to be parsed.