Package com.amilesend.tvmaze.client.api
Class ScheduleApi
java.lang.Object
com.amilesend.tvmaze.client.api.ApiBase
com.amilesend.tvmaze.client.api.ScheduleApi
TVMaze API to retrieve schedule information.
For more information, please refer to https://www.tvmaze.com/api#schedule
For more information, please refer to https://www.tvmaze.com/api#schedule
-
Constructor Summary
ConstructorsConstructorDescriptionScheduleApi
(com.amilesend.client.connection.Connection connection) Creates a newScheduleApi
object -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of all future episodes.getSchedule
(String countryCode, LocalDate date) Retrieves the list of episodes that air in a given country and date.getWebStreamingSchedule
(String countryCode, LocalDate date) Retrieves the list of episodes that air on web/streaming channels in a given country and date.
-
Constructor Details
-
ScheduleApi
public ScheduleApi(com.amilesend.client.connection.Connection connection) Creates a newScheduleApi
object- Parameters:
connection
- the connection
-
-
Method Details
-
getSchedule
Retrieves the list of episodes that air in a given country and date.- Parameters:
countryCode
- the ISO 3166-1 country code (e.g., "US"), ornull
date
- the date, ornull
for the current date- Returns:
- the list of airing episodes
-
getWebStreamingSchedule
Retrieves the list of episodes that air on web/streaming channels in a given country and date.- Parameters:
countryCode
- the ISO 3166-1 country code (e.g., "US"), ornull
date
- the date, ornull
for the current date- Returns:
- the list of airing episodes
-
getFullSchedule
Retrieves the list of all future episodes. Note: This operation is expensive.- Returns:
- the list of future episodes
-