public class CallCollectionRequest extends BaseCollectionRequest<CallCollectionResponse,ICallCollectionPage> implements ICallCollectionRequest
| Constructor and Description |
|---|
CallCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Call
|
| Modifier and Type | Method and Description |
|---|---|
ICallCollectionPage |
buildFromResponse(CallCollectionResponse response) |
ICallCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ICallCollectionPage |
get() |
void |
get(ICallback<ICallCollectionPage> callback) |
Call |
post(Call newCall) |
void |
post(Call newCall,
ICallback<Call> callback) |
ICallCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ICallCollectionRequest |
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 CallCollectionRequest(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<ICallCollectionPage> callback)
get in interface ICallCollectionRequestpublic ICallCollectionPage get() throws ClientException
get in interface ICallCollectionRequestClientExceptionpublic void post(Call newCall, ICallback<Call> callback)
post in interface ICallCollectionRequestpublic Call post(Call newCall) throws ClientException
post in interface ICallCollectionRequestClientExceptionpublic ICallCollectionRequest expand(java.lang.String value)
expand in interface ICallCollectionRequestvalue - the expand clausepublic ICallCollectionRequest select(java.lang.String value)
select in interface ICallCollectionRequestvalue - the select clausepublic ICallCollectionRequest top(int value)
top in interface ICallCollectionRequestvalue - the max number of items to returnpublic ICallCollectionPage buildFromResponse(CallCollectionResponse response)