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
|
ICallCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
ICallCollectionPage |
get() |
void |
get(ICallback<? super ICallCollectionPage> callback) |
ICallCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Call |
post(Call newCall) |
void |
post(Call newCall,
ICallback<? super Call> callback) |
ICallCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ICallCollectionRequest |
skip(int value)
Sets the skip value for the request
|
ICallCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
ICallCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public 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<? super ICallCollectionPage> callback)
get
in interface ICallCollectionRequest
public ICallCollectionPage get() throws ClientException
get
in interface ICallCollectionRequest
ClientException
public void post(Call newCall, ICallback<? super Call> callback)
post
in interface ICallCollectionRequest
public Call post(Call newCall) throws ClientException
post
in interface ICallCollectionRequest
ClientException
public ICallCollectionRequest expand(java.lang.String value)
expand
in interface ICallCollectionRequest
value
- the expand clausepublic ICallCollectionRequest filter(java.lang.String value)
filter
in interface ICallCollectionRequest
value
- the filter clausepublic ICallCollectionRequest orderBy(java.lang.String value)
orderBy
in interface ICallCollectionRequest
value
- the order by clausepublic ICallCollectionRequest select(java.lang.String value)
select
in interface ICallCollectionRequest
value
- the select clausepublic ICallCollectionRequest top(int value)
top
in interface ICallCollectionRequest
value
- the max number of items to returnpublic ICallCollectionRequest skip(int value)
skip
in interface ICallCollectionRequest
value
- of the number of items to skippublic ICallCollectionRequest skipToken(java.lang.String skipToken)
skipToken
in interface ICallCollectionRequest
skipToken
- - Token for paginationpublic ICallCollectionPage buildFromResponse(CallCollectionResponse response)