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, setUseCaches
public 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 IConversationCollectionRequest
public IConversationCollectionPage get() throws ClientException
get
in interface IConversationCollectionRequest
ClientException
public void post(Conversation newConversation, ICallback<Conversation> callback)
post
in interface IConversationCollectionRequest
public Conversation post(Conversation newConversation) throws ClientException
post
in interface IConversationCollectionRequest
ClientException
public IConversationCollectionRequest expand(java.lang.String value)
expand
in interface IConversationCollectionRequest
value
- the expand clausepublic IConversationCollectionRequest select(java.lang.String value)
select
in interface IConversationCollectionRequest
value
- the select clausepublic IConversationCollectionRequest top(int value)
top
in interface IConversationCollectionRequest
value
- the max number of items to returnpublic IConversationCollectionPage buildFromResponse(ConversationCollectionResponse response)