public class PostCollectionRequest extends BaseCollectionRequest<PostCollectionResponse,IPostCollectionPage> implements IPostCollectionRequest
| Constructor and Description |
|---|
PostCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Post
|
| Modifier and Type | Method and Description |
|---|---|
IPostCollectionPage |
buildFromResponse(PostCollectionResponse response) |
IPostCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPostCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IPostCollectionPage |
get() |
void |
get(ICallback<? super IPostCollectionPage> callback) |
IPostCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Post |
post(Post newPost) |
void |
post(Post newPost,
ICallback<? super Post> callback) |
IPostCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPostCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IPostCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IPostCollectionRequest |
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 PostCollectionRequest(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 IPostCollectionPage> callback)
get in interface IPostCollectionRequestpublic IPostCollectionPage get() throws ClientException
get in interface IPostCollectionRequestClientExceptionpublic void post(Post newPost, ICallback<? super Post> callback)
post in interface IPostCollectionRequestpublic Post post(Post newPost) throws ClientException
post in interface IPostCollectionRequestClientExceptionpublic IPostCollectionRequest expand(java.lang.String value)
expand in interface IPostCollectionRequestvalue - the expand clausepublic IPostCollectionRequest filter(java.lang.String value)
filter in interface IPostCollectionRequestvalue - the filter clausepublic IPostCollectionRequest orderBy(java.lang.String value)
orderBy in interface IPostCollectionRequestvalue - the order by clausepublic IPostCollectionRequest select(java.lang.String value)
select in interface IPostCollectionRequestvalue - the select clausepublic IPostCollectionRequest top(int value)
top in interface IPostCollectionRequestvalue - the max number of items to returnpublic IPostCollectionRequest skip(int value)
skip in interface IPostCollectionRequestvalue - of the number of items to skippublic IPostCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IPostCollectionRequestskipToken - - Token for paginationpublic IPostCollectionPage buildFromResponse(PostCollectionResponse response)