public class ChannelCollectionRequest extends BaseCollectionRequest<ChannelCollectionResponse,IChannelCollectionPage> implements IChannelCollectionRequest
| Constructor and Description |
|---|
ChannelCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Channel
|
| Modifier and Type | Method and Description |
|---|---|
IChannelCollectionPage |
buildFromResponse(ChannelCollectionResponse response) |
IChannelCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IChannelCollectionPage |
get() |
void |
get(ICallback<IChannelCollectionPage> callback) |
Channel |
post(Channel newChannel) |
void |
post(Channel newChannel,
ICallback<Channel> callback) |
IChannelCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IChannelCollectionRequest |
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 ChannelCollectionRequest(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<IChannelCollectionPage> callback)
get in interface IChannelCollectionRequestpublic IChannelCollectionPage get() throws ClientException
get in interface IChannelCollectionRequestClientExceptionpublic void post(Channel newChannel, ICallback<Channel> callback)
post in interface IChannelCollectionRequestpublic Channel post(Channel newChannel) throws ClientException
post in interface IChannelCollectionRequestClientExceptionpublic IChannelCollectionRequest expand(java.lang.String value)
expand in interface IChannelCollectionRequestvalue - the expand clausepublic IChannelCollectionRequest select(java.lang.String value)
select in interface IChannelCollectionRequestvalue - the select clausepublic IChannelCollectionRequest top(int value)
top in interface IChannelCollectionRequestvalue - the max number of items to returnpublic IChannelCollectionPage buildFromResponse(ChannelCollectionResponse response)