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
|
IPostCollectionPage |
get() |
void |
get(ICallback<IPostCollectionPage> callback) |
Post |
post(Post newPost) |
void |
post(Post newPost,
ICallback<Post> callback) |
IPostCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPostCollectionRequest |
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 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<IPostCollectionPage> callback)
get in interface IPostCollectionRequestpublic IPostCollectionPage get() throws ClientException
get in interface IPostCollectionRequestClientExceptionpublic void post(Post newPost, ICallback<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 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 IPostCollectionPage buildFromResponse(PostCollectionResponse response)