com.uwetrottmann.tmdb2.services.KeywordsService 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.AppendToResponse;
import com.uwetrottmann.tmdb2.entities.DiscoverFilter;
import com.uwetrottmann.tmdb2.entities.Keyword;
import com.uwetrottmann.tmdb2.entities.MovieResultsPage;
import com.uwetrottmann.tmdb2.entities.TmdbDate;
import com.uwetrottmann.tmdb2.enumerations.SortBy;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import java.util.Map;
public interface KeywordsService {
/**
* Get keyword by id.
*
* @param keywordId A BaseKeyword TMDb id.
*/
@GET("keyword/{keyword_id}")
Call summary(
@Path("keyword_id") Integer keywordId
);
/**
* Get keyword by id.
*
* @param keywordId A BaseKeyword TMDb id.
* @param appendToResponse Optional. extra requests to append to the result. Accepted Value(s): movies
*/
@GET("keyword/{keyword_id}")
Call summary(
@Path("keyword_id") Integer keywordId,
@Query("append_to_response") AppendToResponse appendToResponse
);
/**
* Get keyword by id.
*
* @param keywordId A BaseKeyword TMDb id.
* @param appendToResponse Optional. extra requests to append to the result. Accepted Value(s): movies
* @param options Optional. parameters for the appended extra results.
*/
@GET("keyword/{keyword_id}")
Call summary(
@Path("keyword_id") Integer keywordId,
@Query("append_to_response") AppendToResponse appendToResponse,
@QueryMap Map options
);
/**
* Get the movies that belong to a keyword.
*
* Is highly recommend using {@link DiscoverService#discoverMovie(
*String, String, SortBy, String, String, String, Boolean, Boolean,
* Integer, Integer, TmdbDate, TmdbDate, TmdbDate, TmdbDate, Integer,
* Integer, Float, Float, DiscoverFilter, DiscoverFilter, DiscoverFilter,
* DiscoverFilter, DiscoverFilter, DiscoverFilter, Integer, DiscoverFilter,
* Integer, Integer, DiscoverFilter, String, DiscoverFilter) discoverMovie}
* instead of this method as it is much more flexible.
*
* @param keywordId A BaseKeyword TMDb id.
*/
@GET("keyword/{keyword_id}/movies")
Call movies(
@Path("keyword_id") Integer keywordId
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy