public Info changeMessage ( String newMessage ) { Info newInfo = new Info ( ) ; newInfo . setMessage ( newMessage ) ; URL url = COMMENT_URL_TEMPLATE . build ( this . getAPI ( ) . getBaseURL ( ) , this . getID ( ) ) ; BoxJSONRequest request = new BoxJSONRequest ( this . getAPI ( ) , url , "PUT" ) ; request . setBody ( newInfo . getPendingChanges ( ) ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject jsonResponse = JsonObject . readFrom ( response . getJSON ( ) ) ; return new Info ( jsonResponse ) ; }
Changes the message of this comment .