public interface IDeviceRequest extends IHttpRequest
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<Device> callback)
Delete this item from the service
|
IDeviceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Device |
get()
Gets the Device from the service
|
void |
get(ICallback<Device> callback)
Gets the Device from the service
|
Device |
patch(Device sourceDevice)
Patches this Device with a source
|
void |
patch(Device sourceDevice,
ICallback<Device> callback)
Patches this Device with a source
|
Device |
post(Device newDevice)
Posts a Device with a new object
|
void |
post(Device newDevice,
ICallback<Device> callback)
Posts a Device with a new object
|
IDeviceRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
void get(ICallback<Device> callback)
callback
- the callback to be called after success or failureDevice get() throws ClientException
ClientException
- this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<Device> callback)
callback
- the callback when the deletion action has completedvoid delete() throws ClientException
ClientException
- if there was an exception during the delete operationvoid patch(Device sourceDevice, ICallback<Device> callback)
sourceDevice
- the source object with updatescallback
- the callback to be called after success or failureDevice patch(Device sourceDevice) throws ClientException
sourceDevice
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonvoid post(Device newDevice, ICallback<Device> callback)
newDevice
- the new object to createcallback
- the callback to be called after success or failureDevice post(Device newDevice) throws ClientException
newDevice
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonIDeviceRequest select(java.lang.String value)
value
- the select clauseIDeviceRequest expand(java.lang.String value)
value
- the expand clause