TvEpisodeEntity.Builder

public final class TvEpisodeEntity.Builder


Builder class for TvEpisodeEntity.

Summary

Public constructors

Public methods

TvEpisodeEntity.Builder

Adds the availability time windows of the video entity.

TvEpisodeEntity.Builder

Adds the availability time window of the video entity.

TvEpisodeEntity.Builder

Add the rating system for the tv episode.

TvEpisodeEntity.Builder

This method is deprecated.

use addContentRating(RatingSystem) instead

TvEpisodeEntity.Builder

Add the rating systems for the tv episode.

TvEpisodeEntity.Builder

This method is deprecated.

use addContentRatings(List<RatingSystem>) instead

TvEpisodeEntity.Builder

add genre of the tv episode.

TvEpisodeEntity.Builder

add genres of the tv episode.

TvEpisodeEntity.Builder

Add platform specific playback uri for the tv episode.

TvEpisodeEntity.Builder

Add platform specific playback uris for the tv episode.

TvEpisodeEntity.Builder

Add a poster image of the entity.

TvEpisodeEntity.Builder

Add poster images of the entity.

TvEpisodeEntity
TvEpisodeEntity.Builder

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

TvEpisodeEntity.Builder

Sets the availability of the episode.

TvEpisodeEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if the tv episode is downloaded on device or not.

TvEpisodeEntity.Builder

Sets the duration of the tv episode, in milliseconds.

TvEpisodeEntity.Builder

Sets content id of the entity.

TvEpisodeEntity.Builder

Sets the episode display number in the current season.

TvEpisodeEntity.Builder

Sets the episode number in the current season.

TvEpisodeEntity.Builder

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

TvEpisodeEntity.Builder
@CanIgnoreReturnValue
setIsNextEpisodeAvailable(boolean isNextEpisodeAvailable)

Sets if next episode is available.

TvEpisodeEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

TvEpisodeEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

TvEpisodeEntity.Builder

Sets the name of the entity.

TvEpisodeEntity.Builder

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

TvEpisodeEntity.Builder

Adds the price of the tv episode.

TvEpisodeEntity.Builder

Sets the season number of the tv episode.

TvEpisodeEntity.Builder

Sets the season title of the tv episode.

TvEpisodeEntity.Builder

Sets the show title of the tv episode.

TvEpisodeEntity.Builder

Sets the watch next type of the video entity.

Public constructors

Builder

public Builder()

Public methods

addAllAvailabilityTimeWindows

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addAllAvailabilityTimeWindows(
    List<DisplayTimeWindow> availabilityTimeWindows
)

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addContentRating

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addContentRating(RatingSystem contentRating)

Add the rating system for the tv episode.

Required.

addContentRating

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addContentRating(String rating)

add content rating of the tv episode.

Required.

addContentRatings

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addContentRatings(List<RatingSystem> contentRatings)

Add the rating systems for the tv episode.

Required.

addContentRatingsLegacy

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addContentRatingsLegacy(List<String> ratings)

add content ratings of the tv episode.

Required.

addGenre

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addGenre(String genre)

add genre of the tv episode.

Optional.

addGenres

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addGenres(List<String> genres)

add genres of the tv episode.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addPlatformSpecificPlaybackUri(
    PlatformSpecificUri platformSpecificPlaybackUri
)

Add platform specific playback uri for the tv episode. Used by continue watching better together.

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addPlatformSpecificPlaybackUris(
    List<PlatformSpecificUri> platformSpecificPlaybackUris
)

Add platform specific playback uris for the tv episode. Used by continue watching better together.

Optional.

addPosterImage

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

build

public TvEpisodeEntity build()

setAirDateEpochMillis

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setAirDateEpochMillis(long airDateEpochMillis)

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

Required.

setAvailability

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setAvailability(@ContentAvailability int availability)

Sets the availability of the episode.

Required.

setDownloadedOnDevice

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if the tv episode is downloaded on device or not.

Optional.

setDurationMillis

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the tv episode, in milliseconds.

Required.

setEntityId

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setEpisodeDisplayNumber

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setEpisodeDisplayNumber(String episodeDisplayNumber)

Sets the episode display number in the current season.

Required.

setEpisodeNumber

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setEpisodeNumber(int episodeNumber)

Sets the episode number in the current season.

Required.

setInfoPageUri

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setInfoPageUri(Uri infoPageUri)

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

Optional.

setIsNextEpisodeAvailable

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setIsNextEpisodeAvailable(boolean isNextEpisodeAvailable)

Sets if next episode is available.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

Optional.

setName

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setPlayBackUri(Uri playBackUri)

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

Required.

setPrice

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setPrice(Price price)

Adds the price of the tv episode.

Optional.

setSeasonNumber

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setSeasonNumber(String seasonNumber)

Sets the season number of the tv episode.

Optional.

setSeasonTitle

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setSeasonTitle(String seasonTitle)

Sets the season title of the tv episode.

Optional.

setShowTitle

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setShowTitle(String showTitle)

Sets the show title of the tv episode.

Optional.

setWatchNextType

@CanIgnoreReturnValue
public TvEpisodeEntity.Builder setWatchNextType(@WatchNextType int watchNextType)

Sets the watch next type of the video entity.

Optional.