public class EventCollectionRequest extends BaseCollectionRequest<EventCollectionResponse,IEventCollectionPage> implements IEventCollectionRequest
| Constructor and Description |
|---|
EventCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Event
|
| Modifier and Type | Method and Description |
|---|---|
IEventCollectionPage |
buildFromResponse(EventCollectionResponse response) |
IEventCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IEventCollectionPage |
get() |
void |
get(ICallback<IEventCollectionPage> callback) |
Event |
post(Event newEvent) |
void |
post(Event newEvent,
ICallback<Event> callback) |
IEventCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IEventCollectionRequest |
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 EventCollectionRequest(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<IEventCollectionPage> callback)
get in interface IEventCollectionRequestpublic IEventCollectionPage get() throws ClientException
get in interface IEventCollectionRequestClientExceptionpublic void post(Event newEvent, ICallback<Event> callback)
post in interface IEventCollectionRequestpublic Event post(Event newEvent) throws ClientException
post in interface IEventCollectionRequestClientExceptionpublic IEventCollectionRequest expand(java.lang.String value)
expand in interface IEventCollectionRequestvalue - the expand clausepublic IEventCollectionRequest select(java.lang.String value)
select in interface IEventCollectionRequestvalue - the select clausepublic IEventCollectionRequest top(int value)
top in interface IEventCollectionRequestvalue - the max number of items to returnpublic IEventCollectionPage buildFromResponse(EventCollectionResponse response)