public interface TVShowRestInterface
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<TVShowJSON> |
getTVShowInfo(java.lang.String tvShowId,
java.lang.String apiKey)
Get data for a specific TV show
|
retrofit2.Call<TVShowSeasonJSON> |
getTVShowNextEpisodeDate(java.lang.String tvShowId,
int lastSeasonNumber,
java.lang.String apiKey)
Retrieves the next episode date for a given TV show
|
retrofit2.Call<TVShowSearchJSON> |
searchTVShows(java.lang.String query,
java.lang.String apiKey)
Searches TV shows
|
@GET(value="search/tv/?") retrofit2.Call<TVShowSearchJSON> searchTVShows(@Query(value="query") java.lang.String query, @Query(value="api_key") java.lang.String apiKey)
query
- the title to searchapiKey
- the service API key@GET(value="tv/{tvShowId}?") retrofit2.Call<TVShowJSON> getTVShowInfo(@Path(value="tvShowId") java.lang.String tvShowId, @Query(value="api_key") java.lang.String apiKey)
tvShowId
- the ID of the TV showapiKey
- the service API key@GET(value="tv/{tvShowId}/season/{lastSeasonNumber}?") retrofit2.Call<TVShowSeasonJSON> getTVShowNextEpisodeDate(@Path(value="tvShowId") java.lang.String tvShowId, @Path(value="lastSeasonNumber") int lastSeasonNumber, @Query(value="api_key") java.lang.String apiKey)
tvShowId
- the ID of the TV showlastSeasonNumber
- the number of the last seasonapiKey
- the service API key