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
ConstructorsConstructorDescriptionShowsApi
(com.amilesend.client.connection.Connection connection) Creates a newShowsApi
object. -
Method Summary
Modifier and TypeMethodDescriptiongetAliases
(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
.getAlternateList
(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).getCast
(int showId) Gets the list of cast members for a show.getCrew
(int showId) Gets the list of crew members for a show.getEpisode
(int showId, int seasonNum, int episodeNum) Gets anEpisode
for 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.getImages
(int showId) Gets the list of images for a show.getIndex
(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
.getSeasons
(int showId) Gets the list of seasons for a show.getShow
(int showId, Show.EmbeddedType... includeEmbeddedTypes) Gets the show for the givenshowId
.
-
Constructor Details
-
ShowsApi
public ShowsApi(com.amilesend.client.connection.Connection connection) Creates a newShowsApi
object.- 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:
-
getEpisodes
Gets the list of episodes for the givenshowId
.- Parameters:
showId
- the show identifierisSpecialsIncluded
- iftrue
, include specials in the list; elsefalse
- Returns:
- 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:
-
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:
-
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:
-
getEpisode
Gets anEpisode
for 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:
-
getEpisodes
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 list of episodes
- See Also:
-
getSeasons
Gets the list of seasons for a show.- Parameters:
showId
- the show identifier- Returns:
- the list of seasons
- See Also:
-
getSeasonEpisodes
Gets the list of episodes for a givenseasonId
.- Parameters:
seasonId
- the season identifierisGuestCastIncluded
- iftrue
, returns the list of guest cast members; elsefalse
- Returns:
- 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:
-
getCrew
Gets the list of crew members for a show.- Parameters:
showId
- the show identifier- Returns:
- the list of crew members
- See Also:
-
getAliases
Gets the list of alternative show names, or aliases.- Parameters:
showId
- the show identifier- Returns:
- the list of aliases
- See Also:
-
getImages
Gets the list of images for a show.- Parameters:
showId
- the show identifier- Returns:
- 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 aRequestException
when no more pages exist.- Parameters:
pageNum
- the page number- Returns:
- the list of shows
- Throws:
com.amilesend.client.connection.RequestException
- if there are no more shows to return
-