public class ConversationCollectionRequest extends BaseCollectionRequest<ConversationCollectionResponse,IConversationCollectionPage> implements IConversationCollectionRequest
| Constructor and Description |
|---|
ConversationCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Conversation
|
| Modifier and Type | Method and Description |
|---|---|
IConversationCollectionPage |
buildFromResponse(ConversationCollectionResponse response) |
IConversationCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IConversationCollectionPage |
get() |
void |
get(ICallback<IConversationCollectionPage> callback) |
Conversation |
post(Conversation newConversation) |
void |
post(Conversation newConversation,
ICallback<Conversation> callback) |
IConversationCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IConversationCollectionRequest |
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 ConversationCollectionRequest(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<IConversationCollectionPage> callback)
get in interface IConversationCollectionRequestpublic IConversationCollectionPage get() throws ClientException
get in interface IConversationCollectionRequestClientExceptionpublic void post(Conversation newConversation, ICallback<Conversation> callback)
post in interface IConversationCollectionRequestpublic Conversation post(Conversation newConversation) throws ClientException
post in interface IConversationCollectionRequestClientExceptionpublic IConversationCollectionRequest expand(java.lang.String value)
expand in interface IConversationCollectionRequestvalue - the expand clausepublic IConversationCollectionRequest select(java.lang.String value)
select in interface IConversationCollectionRequestvalue - the select clausepublic IConversationCollectionRequest top(int value)
top in interface IConversationCollectionRequestvalue - the max number of items to returnpublic IConversationCollectionPage buildFromResponse(ConversationCollectionResponse response)