public class RoomRequest extends BaseRequest implements IRoomRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
RoomRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Room
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Room> callback)
Delete this item from the service
|
IRoomRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Room |
get()
Gets the Room from the service
|
void |
get(ICallback<? super Room> callback)
Gets the Room from the service
|
Room |
patch(Room sourceRoom)
Patches this Room with a source
|
void |
patch(Room sourceRoom,
ICallback<? super Room> callback)
Patches this Room with a source
|
Room |
post(Room newRoom)
Creates a Room with a new object
|
void |
post(Room newRoom,
ICallback<? super Room> callback)
Creates a Room with a new object
|
Room |
put(Room newRoom)
Creates a Room with a new object
|
void |
put(Room newRoom,
ICallback<? super Room> callback)
Creates a Room with a new object
|
IRoomRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic RoomRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super Room> callback)
get in interface IRoomRequestcallback - the callback to be called after success or failurepublic Room get() throws ClientException
get in interface IRoomRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Room> callback)
delete in interface IRoomRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IRoomRequestClientException - if there was an exception during the delete operationpublic void patch(Room sourceRoom, ICallback<? super Room> callback)
patch in interface IRoomRequestsourceRoom - the source object with updatescallback - the callback to be called after success or failurepublic Room patch(Room sourceRoom) throws ClientException
patch in interface IRoomRequestsourceRoom - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Room newRoom, ICallback<? super Room> callback)
post in interface IRoomRequestnewRoom - the new object to createcallback - the callback to be called after success or failurepublic Room post(Room newRoom) throws ClientException
post in interface IRoomRequestnewRoom - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(Room newRoom, ICallback<? super Room> callback)
put in interface IRoomRequestnewRoom - the object to create/updatecallback - the callback to be called after success or failurepublic Room put(Room newRoom) throws ClientException
put in interface IRoomRequestnewRoom - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IRoomRequest select(java.lang.String value)
select in interface IRoomRequestvalue - the select clausepublic IRoomRequest expand(java.lang.String value)
expand in interface IRoomRequestvalue - the expand clause