public class PresenceCollectionRequest extends BaseCollectionRequest<PresenceCollectionResponse,IPresenceCollectionPage> implements IPresenceCollectionRequest
| Constructor and Description |
|---|
PresenceCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Presence
|
| Modifier and Type | Method and Description |
|---|---|
IPresenceCollectionPage |
buildFromResponse(PresenceCollectionResponse response) |
IPresenceCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPresenceCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IPresenceCollectionPage |
get() |
void |
get(ICallback<? super IPresenceCollectionPage> callback) |
IPresenceCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Presence |
post(Presence newPresence) |
void |
post(Presence newPresence,
ICallback<? super Presence> callback) |
IPresenceCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPresenceCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IPresenceCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IPresenceCollectionRequest |
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, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PresenceCollectionRequest(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 IPresenceCollectionPage> callback)
get in interface IPresenceCollectionRequestpublic IPresenceCollectionPage get() throws ClientException
get in interface IPresenceCollectionRequestClientExceptionpublic void post(Presence newPresence, ICallback<? super Presence> callback)
post in interface IPresenceCollectionRequestpublic Presence post(Presence newPresence) throws ClientException
post in interface IPresenceCollectionRequestClientExceptionpublic IPresenceCollectionRequest expand(java.lang.String value)
expand in interface IPresenceCollectionRequestvalue - the expand clausepublic IPresenceCollectionRequest filter(java.lang.String value)
filter in interface IPresenceCollectionRequestvalue - the filter clausepublic IPresenceCollectionRequest orderBy(java.lang.String value)
orderBy in interface IPresenceCollectionRequestvalue - the order by clausepublic IPresenceCollectionRequest select(java.lang.String value)
select in interface IPresenceCollectionRequestvalue - the select clausepublic IPresenceCollectionRequest top(int value)
top in interface IPresenceCollectionRequestvalue - the max number of items to returnpublic IPresenceCollectionRequest skip(int value)
skip in interface IPresenceCollectionRequestvalue - of the number of items to skippublic IPresenceCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IPresenceCollectionRequestskipToken - - Token for paginationpublic IPresenceCollectionPage buildFromResponse(PresenceCollectionResponse response)