Class FavoritesApi

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

public class FavoritesApi extends Object
  • Constructor Details

    • FavoritesApi

      public FavoritesApi()
    • FavoritesApi

      public FavoritesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createUserFavoritesCall

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

      public void createUserFavorites(FavoriteRecord body) throws ApiException
      creates a new user favorite
      Parameters:
      body - (optional)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createUserFavoritesWithHttpInfo

      public ApiResponse<Void> createUserFavoritesWithHttpInfo(FavoriteRecord body) throws ApiException
      creates a new user favorite
      Parameters:
      body - (optional)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • createUserFavoritesAsync

      public okhttp3.Call createUserFavoritesAsync(FavoriteRecord body, ApiCallback<Void> callback) throws ApiException
      (asynchronously) creates a new user favorite
      Parameters:
      body - (optional)
      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
    • getUserFavoritesCall

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

      public InlineResponse20054 getUserFavorites() throws ApiException
      returns user favorites
      Returns:
      InlineResponse20054
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getUserFavoritesWithHttpInfo

      public ApiResponse<InlineResponse20054> getUserFavoritesWithHttpInfo() throws ApiException
      returns user favorites
      Returns:
      ApiResponse<InlineResponse20054>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getUserFavoritesAsync

      public okhttp3.Call getUserFavoritesAsync(ApiCallback<InlineResponse20054> callback) throws ApiException
      (asynchronously) returns user favorites
      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