Builder class for TvEpisodeEntity
.
Public Constructor Summary
Builder()
|
Public Method Summary
TvEpisodeEntity.Builder |
addAllAvailabilityTimeWindows(List<DisplayTimeWindow>
availabilityTimeWindows)
Adds the availability time windows of the video entity.
|
TvEpisodeEntity.Builder |
addAvailabilityTimeWindow(DisplayTimeWindow
availabilityTimeWindow)
Adds the availability time window of the video entity.
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
addContentRating(String rating)
This method is deprecated. use addContentRating(RatingSystem) instead
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
addContentRatingsLegacy(List<String> ratings)
This method is deprecated. use
addContentRatings(List<RatingSystem>) instead
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
addPlatformSpecificPlaybackUri(PlatformSpecificUri
platformSpecificPlaybackUri)
Add platform specific playback uri for the tv episode.
|
TvEpisodeEntity.Builder |
addPlatformSpecificPlaybackUris(List<PlatformSpecificUri>
platformSpecificPlaybackUris)
Add platform specific playback uris for the tv episode.
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity |
build()
|
TvEpisodeEntity.Builder |
setAirDateEpochMillis(long airDateEpochMillis)
Sets the air date of the episode, in milliseconds since Epoch.
|
TvEpisodeEntity.Builder |
setAvailability(int availability)
Sets the availability of the episode.
|
TvEpisodeEntity.Builder |
setDownloadedOnDevice(boolean downloadedOnDevice)
Sets a boolean value to indicate if the tv episode is downloaded on device or
not.
|
TvEpisodeEntity.Builder |
setDurationMillis(long durationMillis)
Sets the duration of the tv episode, in milliseconds.
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
setEpisodeDisplayNumber(String
episodeDisplayNumber)
Sets the episode display number in the current season.
|
TvEpisodeEntity.Builder |
setEpisodeNumber(int episodeNumber)
Sets the episode number in the current season.
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
setIsNextEpisodeAvailable(boolean isNextEpisodeAvailable)
Sets if next episode is available.
|
TvEpisodeEntity.Builder |
setLastEngagementTimeMillis(long lastEngagementTimeMillis)
Sets last engagement time of the entity, in milliseconds since Epoch.
|
TvEpisodeEntity.Builder |
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)
Sets last play back position of the video entity, in milliseconds.
|
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder | |
TvEpisodeEntity.Builder |
setWatchNextType(int watchNextType)
Sets the watch next type of the video entity.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public TvEpisodeEntity.Builder addAllAvailabilityTimeWindows (List<DisplayTimeWindow> availabilityTimeWindows)
Adds the availability time windows of the video entity.
Optional.
public TvEpisodeEntity.Builder addAvailabilityTimeWindow (DisplayTimeWindow availabilityTimeWindow)
Adds the availability time window of the video entity.
Optional.
public TvEpisodeEntity.Builder addContentRating (RatingSystem contentRating)
Add the rating system for the tv episode.
Required.
public TvEpisodeEntity.Builder addContentRating (String rating)
This method is deprecated.
use addContentRating(RatingSystem) instead
add content rating of the tv episode.
Required.
public TvEpisodeEntity.Builder addContentRatings (List<RatingSystem> contentRatings)
Add the rating systems for the tv episode.
Required.
public TvEpisodeEntity.Builder addContentRatingsLegacy (List<String> ratings)
This method is deprecated.
use addContentRatings(List<RatingSystem>)
instead
add content ratings of the tv episode.
Required.
public TvEpisodeEntity.Builder addGenre (String genre)
add genre of the tv episode.
Optional.
public TvEpisodeEntity.Builder addGenres (List<String> genres)
add genres of the tv episode.
Optional.
public TvEpisodeEntity.Builder addPlatformSpecificPlaybackUri (PlatformSpecificUri platformSpecificPlaybackUri)
Add platform specific playback uri for the tv episode. Used by continue watching better together.
Optional.
public TvEpisodeEntity.Builder addPlatformSpecificPlaybackUris (List<PlatformSpecificUri> platformSpecificPlaybackUris)
Add platform specific playback uris for the tv episode. Used by continue watching better together.
Optional.
public TvEpisodeEntity.Builder addPosterImage (Image image)
Add a poster image of the entity.
Required.
public TvEpisodeEntity.Builder addPosterImages (List<Image> images)
Add poster images of the entity.
Required.
public TvEpisodeEntity build ()
public TvEpisodeEntity.Builder setAirDateEpochMillis (long airDateEpochMillis)
Sets the air date of the episode, in milliseconds since Epoch.
Required.
public TvEpisodeEntity.Builder setAvailability (int availability)
Sets the availability of the episode.
Required.
public TvEpisodeEntity.Builder setDownloadedOnDevice (boolean downloadedOnDevice)
Sets a boolean value to indicate if the tv episode is downloaded on device or not.
Optional.
public TvEpisodeEntity.Builder setDurationMillis (long durationMillis)
Sets the duration of the tv episode, in milliseconds.
Required.
public TvEpisodeEntity.Builder setEntityId (String entityId)
Sets content id of the entity.
Optional.
public TvEpisodeEntity.Builder setEpisodeDisplayNumber (String episodeDisplayNumber)
Sets the episode display number in the current season.
Required.
public TvEpisodeEntity.Builder setEpisodeNumber (int episodeNumber)
Sets the episode number in the current season.
Required.
public TvEpisodeEntity.Builder setInfoPageUri (Uri infoPageUri)
Sets the deeplink to open the details info page of the tv episode.
Optional.
public TvEpisodeEntity.Builder setIsNextEpisodeAvailable (boolean isNextEpisodeAvailable)
Sets if next episode is available.
Optional.
public TvEpisodeEntity.Builder setLastEngagementTimeMillis (long lastEngagementTimeMillis)
Sets last engagement time of the entity, in milliseconds since Epoch.
Optional.
public TvEpisodeEntity.Builder setLastPlayBackPositionTimeMillis (long lastPlayBackPositionTimeMillis)
Sets last play back position of the video entity, in milliseconds.
Optional.
public TvEpisodeEntity.Builder setName (String name)
Sets the name of the entity.
Required.
public TvEpisodeEntity.Builder setPlayBackUri (Uri playBackUri)
Sets the on device deeplink to start playing the tv episode.
Required.
public TvEpisodeEntity.Builder setPrice (Price price)
Adds the price of the tv episode.
Optional.
public TvEpisodeEntity.Builder setSeasonNumber (String seasonNumber)
Sets the season number of the tv episode.
Optional.
public TvEpisodeEntity.Builder setSeasonTitle (String seasonTitle)
Sets the season title of the tv episode.
Optional.
public TvEpisodeEntity.Builder setShowTitle (String showTitle)
Sets the show title of the tv episode.
Optional.
public TvEpisodeEntity.Builder setWatchNextType (int watchNextType)
Sets the watch next type of the video entity.
Optional.