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