@BoxResourceType(value="comment") public class BoxComment extends BoxResource
Unless otherwise noted, the methods in this class can throw an unchecked BoxAPIException
(unchecked
meaning that the compiler won't force you to handle it) if an error occurs. If you wish to implement custom error
handling for errors related to the Box REST API, you should capture this exception explicitly.
Modifier and Type | Class and Description |
---|---|
class |
BoxComment.Info
Contains information about a BoxComment.
|
Constructor and Description |
---|
BoxComment(BoxAPIConnection api,
String id)
Constructs a BoxComment for a comment with a given ID.
|
Modifier and Type | Method and Description |
---|---|
BoxComment.Info |
changeMessage(String newMessage)
Changes the message of this comment.
|
void |
delete()
Deletes this comment.
|
BoxComment.Info |
getInfo()
Gets information about this comment.
|
BoxComment.Info |
reply(String message)
Replies to this comment with another message.
|
equals, getAPI, getID, getResourceType, hashCode
public BoxComment(BoxAPIConnection api, String id)
api
- the API connection to be used with the comment.id
- the ID of the comment.public BoxComment.Info getInfo()
public BoxComment.Info changeMessage(String newMessage)
newMessage
- the new message for this comment.public BoxComment.Info reply(String message)
message
- the message for the reply.public void delete()