com.uwetrottmann.tmdb2.services.GuestSessionService 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.
The newest version!
package com.uwetrottmann.tmdb2.services;
import com.uwetrottmann.tmdb2.entities.MovieResultsPage;
import com.uwetrottmann.tmdb2.entities.TvEpisodeResultsPage;
import com.uwetrottmann.tmdb2.entities.TvShowResultsPage;
import com.uwetrottmann.tmdb2.enumerations.SortBy;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface GuestSessionService {
/**
* Get the rated movies for a guest session.
*
* @param language Optional. ISO 639-1 code.
* @param sortBy Optional. Sort the results. Allowed Values: created_at.asc, created_at.desc
*/
@GET("guest_session/{id}/rated/movies")
Call ratedMovies(
@Path("id") String session_id,
@Query("language") String language,
@Query("sort_by") SortBy sortBy
);
/**
* Get the rated TV shows for a guest session.
*
* @param language Optional. ISO 639-1 code.
* @param sortBy Optional. Sort the results. Allowed Values: created_at.asc, created_at.desc
*/
@GET("guest_session/{id}/rated/tv")
Call ratedTvShows(
@Path("id") String session_id,
@Query("language") String language,
@Query("sort_by") SortBy sortBy
);
/**
* Get the rated TV episodes for a guest session.
*
* @param language Optional. ISO 639-1 code.
* @param sortBy Optional. Sort the results. Allowed Values: created_at.asc, created_at.desc
*/
@GET("guest_session/{id}/rated/tv/episodes")
Call ratedTvEpisodes(
@Path("id") String session_id,
@Query("language") String language,
@Query("sort_by") SortBy sortBy
);
}