com.uwetrottmann.tmdb2.services.GenreService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tmdb-java Show documentation
Show all versions of tmdb-java Show documentation
tmdb-java is a retrofit2 based wrapper around the themoviedb.org API v3.
package com.uwetrottmann.tmdb2.services;
import com.uwetrottmann.tmdb2.entities.GenreResults;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface GenreService {
/**
* Get the list of movie genres.
*
* @param language Optional. ISO 639-1 code.
*/
@GET("genre/movie/list")
Call movie(
@Query("language") String language
);
/**
* Get the list of TV genres.
*
* @param language Optional. ISO 639-1 code.
*/
@GET("genre/tv/list")
Call tv(
@Query("language") String language
);
}