public class BoxApiComment extends BoxApi
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMENTS_ENDPOINT |
mBaseUploadUri, mBaseUri, mSession| Constructor and Description |
|---|
BoxApiComment(BoxSession session)
Constructs a BoxApiComment with the provided BoxSession
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestsComment.AddReplyComment |
getAddCommentReplyRequest(java.lang.String commentId,
java.lang.String message)
Gets a request that adds a reply comment to a comment
|
protected java.lang.String |
getCommentInfoUrl(java.lang.String id) |
protected java.lang.String |
getCommentsUrl() |
BoxRequestsComment.DeleteComment |
getDeleteRequest(java.lang.String id)
Gets a request that deletes a comment
|
BoxRequestsComment.GetCommentInfo |
getInfoRequest(java.lang.String id)
Gets a request that retrieves information on a comment
|
BoxRequestsComment.UpdateComment |
getUpdateRequest(java.lang.String id,
java.lang.String newMessage)
Gets a request that updates a comment's information
|
getBaseUploadUri, getBaseUripublic static final java.lang.String COMMENTS_ENDPOINT
public BoxApiComment(BoxSession session)
session - authenticated session to use with the BoxApiCommentprotected java.lang.String getCommentsUrl()
protected java.lang.String getCommentInfoUrl(java.lang.String id)
public BoxRequestsComment.GetCommentInfo getInfoRequest(java.lang.String id)
id - id of comment to retrieve info onpublic BoxRequestsComment.AddReplyComment getAddCommentReplyRequest(java.lang.String commentId, java.lang.String message)
commentId - id of the comment to reply tomessage - message for the comment that will be addedpublic BoxRequestsComment.UpdateComment getUpdateRequest(java.lang.String id, java.lang.String newMessage)
id - id of comment to update information onnewMessage - new message for the commentpublic BoxRequestsComment.DeleteComment getDeleteRequest(java.lang.String id)
id - id of comment to delete