TvSeasonEntity.Builder

public static final class TvSeasonEntity.Builder extends Object

Builder class for TvSeasonEntity.

Public Constructor Summary

Public Method Summary

TvSeasonEntity.Builder
addAllAvailabilityTimeWindows(List<DisplayTimeWindow> availabilityTimeWindows)
Adds the availability time windows of the video entity.
TvSeasonEntity.Builder
addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)
Adds the availability time window of the video entity.
TvSeasonEntity.Builder
addContentRating(RatingSystem contentRating)
Add the rating system for the tv season.
TvSeasonEntity.Builder
addContentRating(String rating)
This method is deprecated. use addContentRating(RatingSystem) instead
TvSeasonEntity.Builder
addContentRatings(List<RatingSystem> contentRatings)
Add the rating systems for the tv season.
TvSeasonEntity.Builder
addContentRatingsLegacy(List<String> ratings)
This method is deprecated. use addContentRatings(List<RatingSystem>) instead
TvSeasonEntity.Builder
addGenre(String genre)
Adds genre of the tv season.
TvSeasonEntity.Builder
addGenres(List<String> genres)
Adds genres of the tv season.
TvSeasonEntity.Builder
addPosterImage(Image image)
Add a poster image of the entity.
TvSeasonEntity.Builder
addPosterImages(List<Image> images)
Add poster images of the entity.
TvSeasonEntity
TvSeasonEntity.Builder
setAvailability(int availability)
Sets the availability of the tv season.
TvSeasonEntity.Builder
setEntityId(String entityId)
Sets content id of the entity.
TvSeasonEntity.Builder
setEpisodeCount(int episodeCount)
Sets the total number of episodes in the current tv season.
TvSeasonEntity.Builder
setFirstEpisodeAirDateEpochMillis(long firstEpisodeAirDateEpochMillis)
Sets the air date of the first episode in this season, in milliseconds since Epoch.
TvSeasonEntity.Builder
setInfoPageUri(Uri infoPageUri)
Sets the deeplink to open the details info page of the tv season.
TvSeasonEntity.Builder
setLastEngagementTimeMillis(long lastEngagementTimeMillis)
Sets last engagement time of the entity, in milliseconds since Epoch.
TvSeasonEntity.Builder
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)
Sets last play back position of the video entity, in milliseconds.
TvSeasonEntity.Builder
setLatestEpisodeAirDateEpochMillis(long latestEpisodeAirDateEpochMillis)
Sets the air date of the latest episode in this season, in milliseconds since Epoch.
TvSeasonEntity.Builder
setName(String name)
Sets the name of the entity.
TvSeasonEntity.Builder
setPlayBackUri(Uri playBackUri)
Sets the on device deeplink to start playing the tv season.
TvSeasonEntity.Builder
setPrice(Price price)
Adds the price of the tv season.
TvSeasonEntity.Builder
setSeasonDisplayNumber(String seasonDisplayNumber)
Sets the season display number string in the current tv show.
TvSeasonEntity.Builder
setSeasonNumber(int seasonNumber)
Sets the number of the season in the current tv show.
TvSeasonEntity.Builder
setWatchNextType(int watchNextType)
Sets the watch next type of the video entity.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public TvSeasonEntity.Builder addAllAvailabilityTimeWindows (List<DisplayTimeWindow> availabilityTimeWindows)

Adds the availability time windows of the video entity.

Optional.

public TvSeasonEntity.Builder addAvailabilityTimeWindow (DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

public TvSeasonEntity.Builder addContentRating (RatingSystem contentRating)

Add the rating system for the tv season.

Required.

public TvSeasonEntity.Builder addContentRating (String rating)

This method is deprecated.
use addContentRating(RatingSystem) instead

Adds content rating of the tv season.

Required.

public TvSeasonEntity.Builder addContentRatings (List<RatingSystem> contentRatings)

Add the rating systems for the tv season.

Required.

public TvSeasonEntity.Builder addContentRatingsLegacy (List<String> ratings)

This method is deprecated.
use addContentRatings(List<RatingSystem>) instead

Adds content ratings of the tv season.

Required.

public TvSeasonEntity.Builder addGenre (String genre)

Adds genre of the tv season.

Optional.

public TvSeasonEntity.Builder addGenres (List<String> genres)

Adds genres of the tv season.

Optional.

public TvSeasonEntity.Builder addPosterImage (Image image)

Add a poster image of the entity.

Required.

public TvSeasonEntity.Builder addPosterImages (List<Image> images)

Add poster images of the entity.

Required.

public TvSeasonEntity build ()

public TvSeasonEntity.Builder setAvailability (int availability)

Sets the availability of the tv season.

Required.

public TvSeasonEntity.Builder setEntityId (String entityId)

Sets content id of the entity.

Optional.

public TvSeasonEntity.Builder setEpisodeCount (int episodeCount)

Sets the total number of episodes in the current tv season.

Required.

public TvSeasonEntity.Builder setFirstEpisodeAirDateEpochMillis (long firstEpisodeAirDateEpochMillis)

Sets the air date of the first episode in this season, in milliseconds since Epoch.

Optional.

public TvSeasonEntity.Builder setInfoPageUri (Uri infoPageUri)

Sets the deeplink to open the details info page of the tv season.

Required.

public TvSeasonEntity.Builder setLastEngagementTimeMillis (long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.

public TvSeasonEntity.Builder setLastPlayBackPositionTimeMillis (long lastPlayBackPositionTimeMillis)

Sets last play back position of the video entity, in milliseconds.

Optional.

public TvSeasonEntity.Builder setLatestEpisodeAirDateEpochMillis (long latestEpisodeAirDateEpochMillis)

Sets the air date of the latest episode in this season, in milliseconds since Epoch.

Optional.

public TvSeasonEntity.Builder setName (String name)

Sets the name of the entity.

Required.

public TvSeasonEntity.Builder setPlayBackUri (Uri playBackUri)

Sets the on device deeplink to start playing the tv season.

Optional.

public TvSeasonEntity.Builder setPrice (Price price)

Adds the price of the tv season.

Optional.

public TvSeasonEntity.Builder setSeasonDisplayNumber (String seasonDisplayNumber)

Sets the season display number string in the current tv show.

Required.

public TvSeasonEntity.Builder setSeasonNumber (int seasonNumber)

Sets the number of the season in the current tv show.

Required.

public TvSeasonEntity.Builder setWatchNextType (int watchNextType)

Sets the watch next type of the video entity.

Optional.