public static class BoxRequestsBookmark.AddCommentToBookmark extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsmIdJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mSession| Constructor and Description |
|---|
BoxRequestsBookmark.AddCommentToBookmark(java.lang.String bookmarkId,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
Creates an add comment to bookmark request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getItemId()
Returns the id of the item currently set in the request to add a comment to.
|
java.lang.String |
getItemType()
Returns the type of item used in the request to add a comment to.
|
java.lang.String |
getMessage()
Returns the message that is currently set in the request for the new comment.
|
protected R |
setItemId(java.lang.String id)
Sets the id of the item used in the request to add a comment to.
|
protected R |
setItemType(java.lang.String type)
Sets the type of item used in the request to add a comment to.
|
R |
setMessage(java.lang.String message)
Sets the message used in the request to create a new comment.
|
getId, setFieldsbuildUrl, createHttpRequest, createQuery, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getStringBody, importRequestContentMapsFrom, logDebug, logRequest, parseHashMapEntry, parseJsonObject, send, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic BoxRequestsBookmark.AddCommentToBookmark(java.lang.String bookmarkId,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
bookmarkId - id of the bookmark to add a comment tomessage - message of the new commentrequestUrl - URL of the add comment endpointsession - the authenticated session that will be used to make the request withpublic java.lang.String getMessage()
public R setMessage(java.lang.String message)
message - message for the new comment.public java.lang.String getItemId()
protected R setItemId(java.lang.String id)
id - id of the item to add a comment to.public java.lang.String getItemType()
protected R setItemType(java.lang.String type)
type - type of item used in the request. Must be "file", "comment", or "web_link".