Class MoviesApi

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

public class MoviesApi extends Object
  • Constructor Details

    • MoviesApi

      public MoviesApi()
    • MoviesApi

      public MoviesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getAllMovieCall

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

      public InlineResponse20030 getAllMovie(BigDecimal page) throws ApiException
      returns list of movie base records
      Parameters:
      page - page number (optional)
      Returns:
      InlineResponse20030
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAllMovieWithHttpInfo

      public ApiResponse<InlineResponse20030> getAllMovieWithHttpInfo(BigDecimal page) throws ApiException
      returns list of movie base records
      Parameters:
      page - page number (optional)
      Returns:
      ApiResponse<InlineResponse20030>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getAllMovieAsync

      public okhttp3.Call getAllMovieAsync(BigDecimal page, ApiCallback<InlineResponse20030> callback) throws ApiException
      (asynchronously) returns list of movie base records
      Parameters:
      page - page number (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
    • getMovieBaseCall

      public okhttp3.Call getMovieBaseCall(BigDecimal id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getMovieBase
      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
    • getMovieBase

      public InlineResponse20031 getMovieBase(BigDecimal id) throws ApiException
      Returns movie base record
      Parameters:
      id - id (required)
      Returns:
      InlineResponse20031
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieBaseWithHttpInfo

      public ApiResponse<InlineResponse20031> getMovieBaseWithHttpInfo(BigDecimal id) throws ApiException
      Returns movie base record
      Parameters:
      id - id (required)
      Returns:
      ApiResponse<InlineResponse20031>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieBaseAsync

      public okhttp3.Call getMovieBaseAsync(BigDecimal id, ApiCallback<InlineResponse20031> callback) throws ApiException
      (asynchronously) Returns movie base 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
    • getMovieBaseBySlugCall

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

      public InlineResponse20031 getMovieBaseBySlug(String slug) throws ApiException
      Returns movie base record search by slug
      Parameters:
      slug - slug (required)
      Returns:
      InlineResponse20031
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieBaseBySlugWithHttpInfo

      public ApiResponse<InlineResponse20031> getMovieBaseBySlugWithHttpInfo(String slug) throws ApiException
      Returns movie base record search by slug
      Parameters:
      slug - slug (required)
      Returns:
      ApiResponse<InlineResponse20031>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieBaseBySlugAsync

      public okhttp3.Call getMovieBaseBySlugAsync(String slug, ApiCallback<InlineResponse20031> callback) throws ApiException
      (asynchronously) Returns movie base record search by slug
      Parameters:
      slug - slug (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
    • getMovieExtendedCall

      public okhttp3.Call getMovieExtendedCall(BigDecimal id, String meta, Boolean _short, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getMovieExtended
      Parameters:
      id - id (required)
      meta - meta (optional)
      _short - reduce the payload and returns the short version of this record without characters, artworks and trailers. (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getMovieExtended

      public InlineResponse20032 getMovieExtended(BigDecimal id, String meta, Boolean _short) throws ApiException
      Returns movie extended record
      Parameters:
      id - id (required)
      meta - meta (optional)
      _short - reduce the payload and returns the short version of this record without characters, artworks and trailers. (optional)
      Returns:
      InlineResponse20032
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieExtendedWithHttpInfo

      public ApiResponse<InlineResponse20032> getMovieExtendedWithHttpInfo(BigDecimal id, String meta, Boolean _short) throws ApiException
      Returns movie extended record
      Parameters:
      id - id (required)
      meta - meta (optional)
      _short - reduce the payload and returns the short version of this record without characters, artworks and trailers. (optional)
      Returns:
      ApiResponse<InlineResponse20032>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieExtendedAsync

      public okhttp3.Call getMovieExtendedAsync(BigDecimal id, String meta, Boolean _short, ApiCallback<InlineResponse20032> callback) throws ApiException
      (asynchronously) Returns movie extended record
      Parameters:
      id - id (required)
      meta - meta (optional)
      _short - reduce the payload and returns the short version of this record without characters, artworks and trailers. (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
    • getMovieTranslationCall

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

      public InlineResponse20020 getMovieTranslation(BigDecimal id, String language) throws ApiException
      Returns movie translation record
      Parameters:
      id - id (required)
      language - language (required)
      Returns:
      InlineResponse20020
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieTranslationWithHttpInfo

      public ApiResponse<InlineResponse20020> getMovieTranslationWithHttpInfo(BigDecimal id, String language) throws ApiException
      Returns movie translation record
      Parameters:
      id - id (required)
      language - language (required)
      Returns:
      ApiResponse<InlineResponse20020>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMovieTranslationAsync

      public okhttp3.Call getMovieTranslationAsync(BigDecimal id, String language, ApiCallback<InlineResponse20020> callback) throws ApiException
      (asynchronously) Returns movie translation record
      Parameters:
      id - id (required)
      language - language (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
    • getMoviesFilterCall

      public okhttp3.Call getMoviesFilterCall(String country, String lang, BigDecimal company, BigDecimal contentRating, BigDecimal genre, String sort, BigDecimal status, BigDecimal year, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getMoviesFilter
      Parameters:
      country - country of origin (required)
      lang - original language (required)
      company - production company (optional)
      contentRating - content rating id base on a country (optional)
      genre - genre (optional)
      sort - sort by results (optional)
      status - status (optional)
      year - release year (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getMoviesFilter

      public InlineResponse20033 getMoviesFilter(String country, String lang, BigDecimal company, BigDecimal contentRating, BigDecimal genre, String sort, BigDecimal status, BigDecimal year) throws ApiException
      Search movies based on filter parameters
      Parameters:
      country - country of origin (required)
      lang - original language (required)
      company - production company (optional)
      contentRating - content rating id base on a country (optional)
      genre - genre (optional)
      sort - sort by results (optional)
      status - status (optional)
      year - release year (optional)
      Returns:
      InlineResponse20033
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMoviesFilterWithHttpInfo

      public ApiResponse<InlineResponse20033> getMoviesFilterWithHttpInfo(String country, String lang, BigDecimal company, BigDecimal contentRating, BigDecimal genre, String sort, BigDecimal status, BigDecimal year) throws ApiException
      Search movies based on filter parameters
      Parameters:
      country - country of origin (required)
      lang - original language (required)
      company - production company (optional)
      contentRating - content rating id base on a country (optional)
      genre - genre (optional)
      sort - sort by results (optional)
      status - status (optional)
      year - release year (optional)
      Returns:
      ApiResponse<InlineResponse20033>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getMoviesFilterAsync

      public okhttp3.Call getMoviesFilterAsync(String country, String lang, BigDecimal company, BigDecimal contentRating, BigDecimal genre, String sort, BigDecimal status, BigDecimal year, ApiCallback<InlineResponse20033> callback) throws ApiException
      (asynchronously) Search movies based on filter parameters
      Parameters:
      country - country of origin (required)
      lang - original language (required)
      company - production company (optional)
      contentRating - content rating id base on a country (optional)
      genre - genre (optional)
      sort - sort by results (optional)
      status - status (optional)
      year - release year (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