public static class BoxRequestsComment.UpdateComment extends BoxRequest<BoxComment,BoxRequestsComment.UpdateComment>
BoxRequest.BoxRequestHandler<R extends BoxRequest>, BoxRequest.ContentTypes, BoxRequest.MethodsJSON_OBJECT, mBodyMap, mContentType, mHeaderMap, mListener, mQueryMap, mRequestMethod, mRequestUrlString, mRequiresSocket, mSession, mTimeout| Constructor and Description |
|---|
UpdateComment(java.lang.String id,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
Creates an update comment request with the default parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Gets the id of the comment to be updated in the request
|
java.lang.String |
getMessage()
Gets the message currently set as the new message for the comment in the update request
|
protected void |
onSendCompleted(BoxResponse<BoxComment> response)
Post action that will be performed after a successful send occurs.
|
BoxRequestsComment.UpdateComment |
setMessage(java.lang.String message) |
buildUrl, createHeaderMap, 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 UpdateComment(java.lang.String id,
java.lang.String message,
java.lang.String requestUrl,
BoxSession session)
id - id of the comment to update information onmessage - the new message for the commentrequestUrl - URL of the update comment endpointsession - the authenticated session that will be used to make the request withpublic java.lang.String getId()
public java.lang.String getMessage()
public BoxRequestsComment.UpdateComment setMessage(java.lang.String message)
protected void onSendCompleted(BoxResponse<BoxComment> response) throws BoxException
BoxRequestonSendCompleted in class BoxRequest<BoxComment,BoxRequestsComment.UpdateComment>response - response of the BoxRequestBoxException - thrown if there was a problem with handling the request.