public class DeviceCollectionRequest extends BaseCollectionRequest<DeviceCollectionResponse,IDeviceCollectionPage> implements IDeviceCollectionRequest
| Constructor and Description |
|---|
DeviceCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Device
|
| Modifier and Type | Method and Description |
|---|---|
IDeviceCollectionPage |
buildFromResponse(DeviceCollectionResponse response) |
IDeviceCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IDeviceCollectionPage |
get() |
void |
get(ICallback<IDeviceCollectionPage> callback) |
Device |
post(Device newDevice) |
void |
post(Device newDevice,
ICallback<Device> callback) |
IDeviceCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDeviceCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic DeviceCollectionRequest(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<IDeviceCollectionPage> callback)
get in interface IDeviceCollectionRequestpublic IDeviceCollectionPage get() throws ClientException
get in interface IDeviceCollectionRequestClientExceptionpublic void post(Device newDevice, ICallback<Device> callback)
post in interface IDeviceCollectionRequestpublic Device post(Device newDevice) throws ClientException
post in interface IDeviceCollectionRequestClientExceptionpublic IDeviceCollectionRequest expand(java.lang.String value)
expand in interface IDeviceCollectionRequestvalue - the expand clausepublic IDeviceCollectionRequest select(java.lang.String value)
select in interface IDeviceCollectionRequestvalue - the select clausepublic IDeviceCollectionRequest top(int value)
top in interface IDeviceCollectionRequestvalue - the max number of items to returnpublic IDeviceCollectionPage buildFromResponse(DeviceCollectionResponse response)