public class TrendingCollectionRequest extends BaseCollectionRequest<TrendingCollectionResponse,ITrendingCollectionPage> implements ITrendingCollectionRequest
| Constructor and Description |
|---|
TrendingCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Trending
|
| Modifier and Type | Method and Description |
|---|---|
ITrendingCollectionPage |
buildFromResponse(TrendingCollectionResponse response) |
ITrendingCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ITrendingCollectionPage |
get() |
void |
get(ICallback<ITrendingCollectionPage> callback) |
Trending |
post(Trending newTrending) |
void |
post(Trending newTrending,
ICallback<Trending> callback) |
ITrendingCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ITrendingCollectionRequest |
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 TrendingCollectionRequest(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<ITrendingCollectionPage> callback)
get in interface ITrendingCollectionRequestpublic ITrendingCollectionPage get() throws ClientException
get in interface ITrendingCollectionRequestClientExceptionpublic void post(Trending newTrending, ICallback<Trending> callback)
post in interface ITrendingCollectionRequestpublic Trending post(Trending newTrending) throws ClientException
post in interface ITrendingCollectionRequestClientExceptionpublic ITrendingCollectionRequest expand(java.lang.String value)
expand in interface ITrendingCollectionRequestvalue - the expand clausepublic ITrendingCollectionRequest select(java.lang.String value)
select in interface ITrendingCollectionRequestvalue - the select clausepublic ITrendingCollectionRequest top(int value)
top in interface ITrendingCollectionRequestvalue - the max number of items to returnpublic ITrendingCollectionPage buildFromResponse(TrendingCollectionResponse response)