Package com.amilesend.tvmaze.client.api
Class ShowsApi
java.lang.Object
com.amilesend.tvmaze.client.api.ApiBase
com.amilesend.tvmaze.client.api.ShowsApi
TVMaze API to retrieve show information.
For more information, please refer to https://www.tvmaze.com/api#shows
For more information, please refer to https://www.tvmaze.com/api#shows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAliases(int showId) Gets the list of alternative show names, or aliases.getAliasesAsync(int showId) Gets the list of alternative show names, or aliases.getAlternateEpisodes(int alternateListId, boolean isEpisodesIncluded) Gets the list of alternate episodes for the givenalternateListId.getAlternateEpisodesAsync(int alternateListId, boolean isEpisodesIncluded) Gets the list of alternate episodes for the givenalternateListId.getAlternateList(int alternateListId, boolean isAlternateEpisodesIncluded) Gets the alternate episode list for the givenalternateListId.getAlternateListAsync(int alternateListId, boolean isAlternateEpisodesIncluded) Gets the alternate episode list for the givenalternateListId.getAlternateLists(int showId) Gets the list of alternate episode lists for the givenshowId(e.g., DVD ordering).getAlternateListsAsync(int showId) Gets the list of alternate episode lists for the givenshowId(e.g., DVD ordering).getCast(int showId) Gets the list of cast members for a show.getCastAsync(int showId) Gets the list of cast members for a show.getCrew(int showId) Gets the list of crew members for a show.getCrewAsync(int showId) Gets the list of crew members for a show.getEpisode(int showId, int seasonNum, int episodeNum) Gets anEpisodefor the given show, season, and episode number.getEpisodeAsync(int showId, int seasonNum, int episodeNum) Gets anEpisodefor the given show, season, and episode number.getEpisodes(int showId, boolean isSpecialsIncluded) Gets the list of episodes for the givenshowId.getEpisodes(int showId, LocalDate date) Gets the list of episodes for a show that aired on the given date.getEpisodesAsync(int showId, boolean isSpecialsIncluded) Gets the list of episodes for the givenshowId.getEpisodesAsync(int showId, LocalDate date) Gets the list of episodes for a show that aired on the given date.getImages(int showId) Gets the list of images for a show.getImagesAsync(int showId) Gets the list of images for a show.getIndex(int pageNum) Gets the list of all shows in the TVMaze database.getIndexAsync(int pageNum) Gets the list of all shows in the TVMaze database.getSeasonEpisodes(int seasonId, boolean isGuestCastIncluded) Gets the list of episodes for a givenseasonId.getSeasonEpisodesAsync(int seasonId, boolean isGuestCastIncluded) Gets the list of episodes for a givenseasonId.getSeasons(int showId) Gets the list of seasons for a show.getSeasonsAsync(int showId) Gets the list of seasons for a show.getShow(int showId, Show.EmbeddedType... includeEmbeddedTypes) Gets the show for the givenshowId.getShowAsync(int showId, Show.EmbeddedType... includeEmbeddedTypes) Gets the show for the givenshowId.
-
Constructor Details
-
ShowsApi
Creates a newShowsApiobject.- Parameters:
connection- the connection
-
-
Method Details
-
getShow
Gets the show for the givenshowId.- Parameters:
showId- the show identifierincludeEmbeddedTypes- the optional embedded types to include in the show- Returns:
- the show
- See Also:
-
getShowAsync
Gets the show for the givenshowId.- Parameters:
showId- the show identifierincludeEmbeddedTypes- the optional embedded types to include in the show- Returns:
- the completable future that retrieves the show
- See Also:
-
getEpisodes
-
getEpisodesAsync
Gets the list of episodes for the givenshowId.- Parameters:
showId- the show identifierisSpecialsIncluded- iftrue, include specials in the list; elsefalse- Returns:
- the completable future that retrieves the list of episodes
-
getAlternateLists
Gets the list of alternate episode lists for the givenshowId(e.g., DVD ordering).- Parameters:
showId- the show identifier- Returns:
- the list of alternate episodes lists
- See Also:
-
getAlternateListsAsync
Gets the list of alternate episode lists for the givenshowId(e.g., DVD ordering).- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of alternate episodes lists
- See Also:
-
getAlternateList
Gets the alternate episode list for the givenalternateListId.- Parameters:
alternateListId- the alternate episode listisAlternateEpisodesIncluded- iftrue, includes the list of embedded alternate episodes; else,false- Returns:
- the alternate episode list
- See Also:
-
getAlternateListAsync
public CompletableFuture<AlternateList> getAlternateListAsync(int alternateListId, boolean isAlternateEpisodesIncluded) Gets the alternate episode list for the givenalternateListId.- Parameters:
alternateListId- the alternate episode listisAlternateEpisodesIncluded- iftrue, includes the list of embedded alternate episodes; else,false- Returns:
- the completable future that retrieves the alternate episode list
- See Also:
-
getAlternateEpisodes
Gets the list of alternate episodes for the givenalternateListId.- Parameters:
alternateListId- the alternate list identifierisEpisodesIncluded- iftrue, includes the associatedEpisode; else,false- Returns:
- the list of alternate episodes
- See Also:
-
getAlternateEpisodesAsync
public CompletableFuture<List<AlternateEpisode>> getAlternateEpisodesAsync(int alternateListId, boolean isEpisodesIncluded) Gets the list of alternate episodes for the givenalternateListId.- Parameters:
alternateListId- the alternate list identifierisEpisodesIncluded- iftrue, includes the associatedEpisode; else,false- Returns:
- the completable future that retrieves the list of alternate episodes
- See Also:
-
getEpisode
Gets anEpisodefor the given show, season, and episode number.- Parameters:
showId- the show identifierseasonNum- the season numberepisodeNum- the associated episode number for the season- Returns:
- the episode
- See Also:
-
getEpisodeAsync
Gets anEpisodefor the given show, season, and episode number.- Parameters:
showId- the show identifierseasonNum- the season numberepisodeNum- the associated episode number for the season- Returns:
- the completable future that retrieves the episode
- See Also:
-
getEpisodes
-
getEpisodesAsync
Gets the list of episodes for a show that aired on the given date.- Parameters:
showId- the show identifierdate- the date of airing- Returns:
- the completable future that retrieves the list of episodes
- See Also:
-
getSeasons
-
getSeasonsAsync
Gets the list of seasons for a show.- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of seasons
- See Also:
-
getSeasonEpisodes
-
getSeasonEpisodesAsync
public CompletableFuture<List<Episode>> getSeasonEpisodesAsync(int seasonId, boolean isGuestCastIncluded) Gets the list of episodes for a givenseasonId.- Parameters:
seasonId- the season identifierisGuestCastIncluded- iftrue, returns the list of guest cast members; elsefalse- Returns:
- the completable future that retrieves the list of episodes
- See Also:
-
getCast
Gets the list of cast members for a show.- Parameters:
showId- the show identifier- Returns:
- the list of cast members
- See Also:
-
getCastAsync
Gets the list of cast members for a show.- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of cast members
- See Also:
-
getCrew
Gets the list of crew members for a show.- Parameters:
showId- the show identifier- Returns:
- the list of crew members
- See Also:
-
getCrewAsync
Gets the list of crew members for a show.- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of crew members
- See Also:
-
getAliases
-
getAliasesAsync
Gets the list of alternative show names, or aliases.- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of aliases
- See Also:
-
getImages
-
getImagesAsync
Gets the list of images for a show.- Parameters:
showId- the show identifier- Returns:
- the completable future that retrieves the list of images
- See Also:
-
getIndex
Gets the list of all shows in the TVMaze database. Note: This is paginated and requires manual specification of the page number with a maximum of 250 shows per response. This operation will throw aRequestExceptionwhen no more pages exist.- Parameters:
pageNum- the page number- Returns:
- the list of shows
- Throws:
RequestException- if there are no more shows to return
-
getIndexAsync
Gets the list of all shows in the TVMaze database. Note: This is paginated and requires manual specification of the page number with a maximum of 250 shows per response. This operation will throw aRequestExceptionwhen no more pages exist.- Parameters:
pageNum- the page number- Returns:
- the completable future that retrieves the list of shows
- Throws:
RequestException- if there are no more shows to return
-