TvSeasonEntity.Builder

public final class TvSeasonEntity.Builder


Builder class for TvSeasonEntity.

Summary

Public constructors

Public methods

TvSeasonEntity.Builder

Adds the availability time windows of the video entity.

TvSeasonEntity.Builder

Adds the availability time window of the video entity.

TvSeasonEntity.Builder

Add the rating system for the tv season.

TvSeasonEntity.Builder

This method is deprecated.

use addContentRating(RatingSystem) instead

TvSeasonEntity.Builder

Add the rating systems for the tv season.

TvSeasonEntity.Builder

This method is deprecated.

use addContentRatings(List<RatingSystem>) instead

TvSeasonEntity.Builder

Adds genre of the tv season.

TvSeasonEntity.Builder

Adds genres of the tv season.

TvSeasonEntity.Builder

Add a poster image of the entity.

TvSeasonEntity.Builder

Add poster images of the entity.

TvSeasonEntity
TvSeasonEntity.Builder

Sets the availability of the tv season.

TvSeasonEntity.Builder

Sets content id of the entity.

TvSeasonEntity.Builder

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

TvSeasonEntity.Builder
@CanIgnoreReturnValue
setFirstEpisodeAirDateEpochMillis(long firstEpisodeAirDateEpochMillis)

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

TvSeasonEntity.Builder

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

TvSeasonEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

TvSeasonEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

TvSeasonEntity.Builder
@CanIgnoreReturnValue
setLatestEpisodeAirDateEpochMillis(
    long latestEpisodeAirDateEpochMillis
)

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

TvSeasonEntity.Builder

Sets the name of the entity.

TvSeasonEntity.Builder

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

TvSeasonEntity.Builder

Adds the price of the tv season.

TvSeasonEntity.Builder

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

TvSeasonEntity.Builder

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

TvSeasonEntity.Builder

Sets the watch next type of the video entity.

Public constructors

Builder

public Builder()

Public methods

addAllAvailabilityTimeWindows

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

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public TvSeasonEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addContentRating

@CanIgnoreReturnValue
public TvSeasonEntity.Builder addContentRating(RatingSystem contentRating)

Add the rating system for the tv season.

Required.

addContentRating

@CanIgnoreReturnValue
public TvSeasonEntity.Builder addContentRating(String rating)

Adds content rating of the tv season.

Required.

addContentRatings

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

Add the rating systems for the tv season.

Required.

addContentRatingsLegacy

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

Adds content ratings of the tv season.

Required.

addGenre

@CanIgnoreReturnValue
public TvSeasonEntity.Builder addGenre(String genre)

Adds genre of the tv season.

Optional.

addGenres

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

Adds genres of the tv season.

Optional.

addPosterImage

@CanIgnoreReturnValue
public TvSeasonEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public TvSeasonEntity build()

setAvailability

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

Sets the availability of the tv season.

Required.

setEntityId

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setEpisodeCount

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setEpisodeCount(int episodeCount)

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

Required.

setFirstEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setFirstEpisodeAirDateEpochMillis(long firstEpisodeAirDateEpochMillis)

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setInfoPageUri(Uri infoPageUri)

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

Required.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

Optional.

setLatestEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setLatestEpisodeAirDateEpochMillis(
    long latestEpisodeAirDateEpochMillis
)

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

Optional.

setName

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setPlayBackUri(Uri playBackUri)

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

Optional.

setPrice

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setPrice(Price price)

Adds the price of the tv season.

Optional.

setSeasonDisplayNumber

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setSeasonDisplayNumber(String seasonDisplayNumber)

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

Required.

setSeasonNumber

@CanIgnoreReturnValue
public TvSeasonEntity.Builder setSeasonNumber(int seasonNumber)

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

Required.

setWatchNextType

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

Sets the watch next type of the video entity.

Optional.