Package org.openapitools.client.api
Class ContestControllerApi
java.lang.Object
org.openapitools.client.api.ContestControllerApi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContest
(ContestDTO contestDTO) This endpoint will create a new contest.okhttp3.Call
createContestAsync
(ContestDTO contestDTO, ApiCallback<ContestDTO> _callback) This endpoint will create a new contest.okhttp3.Call
createContestCall
(ContestDTO contestDTO, ApiCallback _callback) Build call for createContestprivate okhttp3.Call
createContestValidateBeforeCall
(ContestDTO contestDTO, ApiCallback _callback) createContestWithHttpInfo
(ContestDTO contestDTO) This endpoint will create a new contest.void
This method will delete all contests.okhttp3.Call
deleteAllContestsAsync
(ApiCallback<Void> _callback) This method will delete all contests.okhttp3.Call
deleteAllContestsCall
(ApiCallback _callback) Build call for deleteAllContestsprivate okhttp3.Call
deleteAllContestsValidateBeforeCall
(ApiCallback _callback) This method will delete all contests.void
deleteContest
(Integer contestId) This method will delete the specified contest.okhttp3.Call
deleteContestAsync
(Integer contestId, ApiCallback<Void> _callback) This method will delete the specified contest.okhttp3.Call
deleteContestCall
(Integer contestId, ApiCallback _callback) Build call for deleteContestprivate okhttp3.Call
deleteContestValidateBeforeCall
(Integer contestId, ApiCallback _callback) deleteContestWithHttpInfo
(Integer contestId) This method will delete the specified contest.void
doesContestExist
(Integer contestId) This method simply checks whether the contest exists.okhttp3.Call
doesContestExistAsync
(Integer contestId, ApiCallback<Void> _callback) This method simply checks whether the contest exists.okhttp3.Call
doesContestExistCall
(Integer contestId, ApiCallback _callback) Build call for doesContestExistprivate okhttp3.Call
doesContestExistValidateBeforeCall
(Integer contestId, ApiCallback _callback) doesContestExistWithHttpInfo
(Integer contestId) This method simply checks whether the contest exists.getContest
(Integer contestId) Returns the specified contest.okhttp3.Call
getContestAsync
(Integer contestId, ApiCallback<ContestDTO> _callback) Returns the specified contest.okhttp3.Call
getContestCall
(Integer contestId, ApiCallback _callback) Build call for getContestgetContests
(Integer offset, Integer limit) This endpoint will return a collection of contests based on the paging values assignedokhttp3.Call
getContestsAsync
(Integer offset, Integer limit, ApiCallback<ContestListDTO> _callback) This endpoint will return a collection of contests based on the paging values assigned (asynchronously)okhttp3.Call
getContestsCall
(Integer offset, Integer limit, ApiCallback _callback) Build call for getContestsprivate okhttp3.Call
getContestsValidateBeforeCall
(Integer offset, Integer limit, ApiCallback _callback) getContestsWithHttpInfo
(Integer offset, Integer limit) This endpoint will return a collection of contests based on the paging values assignedprivate okhttp3.Call
getContestValidateBeforeCall
(Integer contestId, ApiCallback _callback) getContestWithHttpInfo
(Integer contestId) Returns the specified contest.int
void
setApiClient
(ApiClient apiClient) void
setCustomBaseUrl
(String customBaseUrl) void
setHostIndex
(int hostIndex) void
updateContest
(Integer contestId, ContestDTO contestDTO) Update an existing contest -- perhaps to schedule it or report scores.okhttp3.Call
updateContestAsync
(Integer contestId, ContestDTO contestDTO, ApiCallback<Void> _callback) Update an existing contest -- perhaps to schedule it or report scores.okhttp3.Call
updateContestCall
(Integer contestId, ContestDTO contestDTO, ApiCallback _callback) Build call for updateContestprivate okhttp3.Call
updateContestValidateBeforeCall
(Integer contestId, ContestDTO contestDTO, ApiCallback _callback) updateContestWithHttpInfo
(Integer contestId, ContestDTO contestDTO) Update an existing contest -- perhaps to schedule it or report scores.
-
Field Details
-
localVarApiClient
-
localHostIndex
private int localHostIndex -
localCustomBaseUrl
-
-
Constructor Details
-
ContestControllerApi
public ContestControllerApi() -
ContestControllerApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createContestCall
public okhttp3.Call createContestCall(ContestDTO contestDTO, ApiCallback _callback) throws ApiException Build call for createContest- Parameters:
contestDTO
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
createContestValidateBeforeCall
private okhttp3.Call createContestValidateBeforeCall(ContestDTO contestDTO, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
createContest
This endpoint will create a new contest. Home and Away teams are required, id is ignored, and most other fields are optional.- Parameters:
contestDTO
- (required)- Returns:
- ContestDTO
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createContestWithHttpInfo
This endpoint will create a new contest. Home and Away teams are required, id is ignored, and most other fields are optional.- Parameters:
contestDTO
- (required)- Returns:
- ApiResponse<ContestDTO>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createContestAsync
public okhttp3.Call createContestAsync(ContestDTO contestDTO, ApiCallback<ContestDTO> _callback) throws ApiException This endpoint will create a new contest. Home and Away teams are required, id is ignored, and most other fields are optional. (asynchronously)- Parameters:
contestDTO
- (required)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
deleteAllContestsCall
Build call for deleteAllContests- Parameters:
_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
deleteAllContestsValidateBeforeCall
- Throws:
ApiException
-
deleteAllContests
This method will delete all contests.- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAllContestsWithHttpInfo
This method will delete all contests.- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteAllContestsAsync
This method will delete all contests. (asynchronously)- Parameters:
_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
deleteContestCall
Build call for deleteContest- Parameters:
contestId
- id of contest (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
deleteContestValidateBeforeCall
private okhttp3.Call deleteContestValidateBeforeCall(Integer contestId, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
deleteContest
This method will delete the specified contest. There is no error if the ID does not exist. There will only be an error when we fail to delete it.- Parameters:
contestId
- id of contest (required)- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteContestWithHttpInfo
This method will delete the specified contest. There is no error if the ID does not exist. There will only be an error when we fail to delete it.- Parameters:
contestId
- id of contest (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteContestAsync
public okhttp3.Call deleteContestAsync(Integer contestId, ApiCallback<Void> _callback) throws ApiException This method will delete the specified contest. There is no error if the ID does not exist. There will only be an error when we fail to delete it. (asynchronously)- Parameters:
contestId
- id of contest (required)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
doesContestExistCall
public okhttp3.Call doesContestExistCall(Integer contestId, ApiCallback _callback) throws ApiException Build call for doesContestExist- Parameters:
contestId
- id of contest (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
doesContestExistValidateBeforeCall
private okhttp3.Call doesContestExistValidateBeforeCall(Integer contestId, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
doesContestExist
This method simply checks whether the contest exists.- Parameters:
contestId
- id of contest (required)- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
doesContestExistWithHttpInfo
This method simply checks whether the contest exists.- Parameters:
contestId
- id of contest (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
doesContestExistAsync
public okhttp3.Call doesContestExistAsync(Integer contestId, ApiCallback<Void> _callback) throws ApiException This method simply checks whether the contest exists. (asynchronously)- Parameters:
contestId
- id of contest (required)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
getContestCall
Build call for getContest- Parameters:
contestId
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getContestValidateBeforeCall
private okhttp3.Call getContestValidateBeforeCall(Integer contestId, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
getContest
Returns the specified contest.- Parameters:
contestId
- (required)- Returns:
- ContestDTO
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContestWithHttpInfo
Returns the specified contest.- Parameters:
contestId
- (required)- Returns:
- ApiResponse<ContestDTO>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContestAsync
public okhttp3.Call getContestAsync(Integer contestId, ApiCallback<ContestDTO> _callback) throws ApiException Returns the specified contest. (asynchronously)- Parameters:
contestId
- (required)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
getContestsCall
public okhttp3.Call getContestsCall(Integer offset, Integer limit, ApiCallback _callback) throws ApiException Build call for getContests- Parameters:
offset
- optional, server will set to \"no offset\" if not supplied or 0 (optional, default to 0)limit
- optional, server will set to no limit if not supplied or 0 (optional, default to 0)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getContestsValidateBeforeCall
private okhttp3.Call getContestsValidateBeforeCall(Integer offset, Integer limit, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
getContests
This endpoint will return a collection of contests based on the paging values assigned- Parameters:
offset
- optional, server will set to \"no offset\" if not supplied or 0 (optional, default to 0)limit
- optional, server will set to no limit if not supplied or 0 (optional, default to 0)- Returns:
- ContestListDTO
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContestsWithHttpInfo
public ApiResponse<ContestListDTO> getContestsWithHttpInfo(Integer offset, Integer limit) throws ApiException This endpoint will return a collection of contests based on the paging values assigned- Parameters:
offset
- optional, server will set to \"no offset\" if not supplied or 0 (optional, default to 0)limit
- optional, server will set to no limit if not supplied or 0 (optional, default to 0)- Returns:
- ApiResponse<ContestListDTO>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContestsAsync
public okhttp3.Call getContestsAsync(Integer offset, Integer limit, ApiCallback<ContestListDTO> _callback) throws ApiException This endpoint will return a collection of contests based on the paging values assigned (asynchronously)- Parameters:
offset
- optional, server will set to \"no offset\" if not supplied or 0 (optional, default to 0)limit
- optional, server will set to no limit if not supplied or 0 (optional, default to 0)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-
updateContestCall
public okhttp3.Call updateContestCall(Integer contestId, ContestDTO contestDTO, ApiCallback _callback) throws ApiException Build call for updateContest- Parameters:
contestId
- id of contest (required)contestDTO
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
updateContestValidateBeforeCall
private okhttp3.Call updateContestValidateBeforeCall(Integer contestId, ContestDTO contestDTO, ApiCallback _callback) throws ApiException - Throws:
ApiException
-
updateContest
Update an existing contest -- perhaps to schedule it or report scores.- Parameters:
contestId
- id of contest (required)contestDTO
- (required)- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateContestWithHttpInfo
public ApiResponse<Void> updateContestWithHttpInfo(Integer contestId, ContestDTO contestDTO) throws ApiException Update an existing contest -- perhaps to schedule it or report scores.- Parameters:
contestId
- id of contest (required)contestDTO
- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateContestAsync
public okhttp3.Call updateContestAsync(Integer contestId, ContestDTO contestDTO, ApiCallback<Void> _callback) throws ApiException Update an existing contest -- perhaps to schedule it or report scores. (asynchronously)- Parameters:
contestId
- id of contest (required)contestDTO
- (required)_callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body object
-