public static class BoxRequestsComment.AddReplyComment extends BoxRequestItem<E,R>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.Methods, BoxRequest.TLSSSLSocketFactorymHintHeader, mId, QUERY_FIELDSJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
AddReplyComment(java.lang.String itemId,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
Creates an add reply comment 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.
|
R |
setTaggedMessage(java.lang.String taggedMessage) |
addRepresentationHintGroup, createHeaderMap, getId, onSendCompleted, setFieldsbuildUrl, createHttpRequest, createQuery, equals, getIfMatchEtag, getIfNoneMatchEtag, getRequestHandler, getSession, getSocket, getStringBody, handleSendForCachedResult, handleToTaskForCachedResult, handleUpdateCache, hashCode, importRequestContentMapsFrom, logDebug, logRequest, onSend, parseHashMapEntry, parseJsonObject, send, sendRequest, setBody, setContentType, setHeaders, setIfMatchEtag, setIfNoneMatchEtag, setRequestHandler, setTimeOut, toTaskpublic AddReplyComment(java.lang.String itemId,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
itemId - id of the comment 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 R setTaggedMessage(java.lang.String taggedMessage)
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".