Class GenresApi

java.lang.Object
com.amilesend.tvdb.client.api.GenresApi

public class GenresApi extends Object
  • Constructor Details

    • GenresApi

      public GenresApi()
    • GenresApi

      public GenresApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getAllGenresCall

      public okhttp3.Call getAllGenresCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getAllGenres
      Parameters:
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getAllGenres

      public InlineResponse20022 getAllGenres() throws ApiException
      returns list of genre records
      Returns:
      InlineResponse20022
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAllGenresWithHttpInfo

      public ApiResponse<InlineResponse20022> getAllGenresWithHttpInfo() throws ApiException
      returns list of genre records
      Returns:
      ApiResponse<InlineResponse20022>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAllGenresAsync

      public okhttp3.Call getAllGenresAsync(ApiCallback<InlineResponse20022> callback) throws ApiException
      (asynchronously) returns list of genre 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
    • getGenreBaseCall

      public okhttp3.Call getGenreBaseCall(BigDecimal id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getGenreBase
      Parameters:
      id - id (required)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getGenreBase

      public InlineResponse20023 getGenreBase(BigDecimal id) throws ApiException
      Returns genre record
      Parameters:
      id - id (required)
      Returns:
      InlineResponse20023
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getGenreBaseWithHttpInfo

      public ApiResponse<InlineResponse20023> getGenreBaseWithHttpInfo(BigDecimal id) throws ApiException
      Returns genre record
      Parameters:
      id - id (required)
      Returns:
      ApiResponse<InlineResponse20023>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getGenreBaseAsync

      public okhttp3.Call getGenreBaseAsync(BigDecimal id, ApiCallback<InlineResponse20023> callback) throws ApiException
      (asynchronously) Returns genre record
      Parameters:
      id - id (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