com.uwetrottmann.tmdb2.services.TvService 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.TvContentRatings;
import com.uwetrottmann.tmdb2.entities.Credits;
import com.uwetrottmann.tmdb2.entities.ExternalIds;
import com.uwetrottmann.tmdb2.entities.Images;
import com.uwetrottmann.tmdb2.entities.TvAlternativeTitles;
import com.uwetrottmann.tmdb2.entities.TvKeywords;
import com.uwetrottmann.tmdb2.entities.TvResultsPage;
import com.uwetrottmann.tmdb2.entities.TvShowComplete;
import com.uwetrottmann.tmdb2.entities.Videos;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface TvService {
/**
* Get the primary information about a TV series by id.
*
* @param tmdbId A themoviedb id.
* @param language Optional. ISO 639-1 code.
* @param appendToResponse Optional. extra requests to append to the result.
*/
@GET("tv/{id}")
Call tv(
@Path("id") int tmdbId,
@Query("language") String language,
@Query("append_to_response") AppendToResponse appendToResponse
);
/**
* Get the alternative titles for a specific show ID.
*
* @param tmdbId A themoviedb id.
*/
@GET("tv/{id}/alternative_titles")
Call alternativeTitles(
@Path("id") int tmdbId
);
/**
* Get the cast and crew information about a TV series. Just like the website, we pull this information from the
* last season of the series.
*
* @param tmdbId A themoviedb id.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/{id}/credits")
Call credits(
@Path("id") int tmdbId,
@Query("language") String language
);
/**
* Get the content ratings for a specific TV show.
*
* @param tmbdId A themoviedb id
*/
@GET("tv/{id}/content_ratings")
Call content_ratings(
@Path("id") int tmbdId
);
/**
* Get the external ids that we have stored for a TV series.
*
* @param tmdbId A themoviedb id.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/{id}/external_ids")
Call externalIds(
@Path("id") int tmdbId,
@Query("language") String language
);
/**
* Get the images (posters and backdrops) for a TV series.
*
* @param tmdbId A themoviedb id.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/{id}/images")
Call images(
@Path("id") int tmdbId,
@Query("language") String language
);
/**
* Get the plot keywords for a specific TV show id.
*
* @param tmdbId A themoviedb id.
*/
@GET("tv/{id}/keywords")
Call keywords(
@Path("id") int tmdbId
);
/**
* Get the similar TV shows for a specific tv id.
*
* @param tmdbId A themoviedb id.
* @param page Optional. Minimum value is 1, expected value is an integer.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/{id}/similar")
Call similar(
@Path("id") int tmdbId,
@Query("page") Integer page,
@Query("language") String language
);
/**
* Get the videos that have been added to a TV series (trailers, opening credits, etc...)
*
* @param tmdbId A themoviedb id.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/{id}/videos")
Call videos(
@Path("id") int tmdbId,
@Query("language") String language
);
/**
* Get the latest TV show id.
*/
@GET("tv/latest")
Call latest();
/**
* Get the list of TV shows that are currently on the air. This query looks for any TV show that has an episode with
* an air date in the next 7 days.
*
* @param page Optional. Minimum value is 1, expected value is an integer.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/on_the_air")
Call onTheAir(
@Query("page") Integer page,
@Query("language") String language
);
/**
* Get the list of TV shows that air today. Without a specified timezone, this query defaults to EST (Eastern Time
* UTC-05:00).
*
* @param page Optional. Minimum value is 1, expected value is an integer.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/airing_today")
Call airingToday(
@Query("page") Integer page,
@Query("language") String language
);
/**
* Get the list of top rated TV shows. By default, this list will only include TV shows that have 2 or more votes.
* This list refreshes every day.
*
* @param page Optional. Minimum value is 1, expected value is an integer.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/top_rated")
Call topRated(
@Query("page") Integer page,
@Query("language") String language
);
/**
* Get the list of popular TV shows. This list refreshes every day.
*
* @param page Optional. Minimum value is 1, expected value is an integer.
* @param language Optional. ISO 639-1 code.
*/
@GET("tv/popular")
Call popular(
@Query("page") Integer page,
@Query("language") String language
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy