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