Class FavoritesApi
java.lang.Object
com.amilesend.tvdb.client.api.FavoritesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreates a new user favoriteokhttp3.CallcreateUserFavoritesAsync(FavoriteRecord body, ApiCallback<Void> callback) (asynchronously) creates a new user favoriteokhttp3.CallcreateUserFavoritesCall(FavoriteRecord body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) Build call for createUserFavoritescreates a new user favoritereturns user favoritesokhttp3.CallgetUserFavoritesAsync(ApiCallback<InlineResponse20054> callback) (asynchronously) returns user favoritesokhttp3.CallgetUserFavoritesCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) Build call for getUserFavoritesreturns user favoritesvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
FavoritesApi
public FavoritesApi() -
FavoritesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createUserFavoritesCall
public okhttp3.Call createUserFavoritesCall(FavoriteRecord body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException Build call for createUserFavorites- Parameters:
body- (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createUserFavorites
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
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 listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getUserFavorites
returns user favorites- Returns:
- InlineResponse20054
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getUserFavoritesWithHttpInfo
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
-