Package com.amilesend.tvdb.client.api
Class CountriesApi
java.lang.Object
com.amilesend.tvdb.client.api.CountriesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns list of country recordsokhttp3.Call
getAllCountriesAsync
(ApiCallback<InlineResponse20015> callback) (asynchronously) returns list of country recordsokhttp3.Call
getAllCountriesCall
(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) Build call for getAllCountriesreturns list of country recordsvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
CountriesApi
public CountriesApi() -
CountriesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getAllCountriesCall
public okhttp3.Call getAllCountriesCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException Build call for getAllCountries- Parameters:
progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getAllCountries
returns list of country records- Returns:
- InlineResponse20015
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllCountriesWithHttpInfo
returns list of country records- Returns:
- ApiResponse<InlineResponse20015>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getAllCountriesAsync
public okhttp3.Call getAllCountriesAsync(ApiCallback<InlineResponse20015> callback) throws ApiException (asynchronously) returns list of country records- 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
-