TvShowEntity.Builder

public final class TvShowEntity.Builder


Builder class for TvShowEntity.

Summary

Public constructors

Public methods

TvShowEntity.Builder

Adds the availability time windows of the video entity.

TvShowEntity.Builder

Adds the availability time window of the video entity.

TvShowEntity.Builder

Add the rating system for the tv show.

TvShowEntity.Builder

This method is deprecated.

use addContentRating(RatingSystem) instead

TvShowEntity.Builder

Add the rating systems for the tv show.

TvShowEntity.Builder

This method is deprecated.

use addContentRatings(List<RatingSystem>) instead

TvShowEntity.Builder

Adds genre of the tv show.

TvShowEntity.Builder

Adds genres of the tv show.

TvShowEntity.Builder

Add a poster image of the entity.

TvShowEntity.Builder

Add poster images of the entity.

TvShowEntity
TvShowEntity.Builder

Sets the availability of the tv show.

TvShowEntity.Builder

Sets content id of the entity.

TvShowEntity.Builder
@CanIgnoreReturnValue
setFirstEpisodeAirDateEpochMillis(long firstEpisodeAirDateEpochMillis)

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

TvShowEntity.Builder

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

TvShowEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

TvShowEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

TvShowEntity.Builder
@CanIgnoreReturnValue
setLatestEpisodeAirDateEpochMillis(
    long latestEpisodeAirDateEpochMillis
)

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

TvShowEntity.Builder

Sets the name of the entity.

TvShowEntity.Builder

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

TvShowEntity.Builder

Adds the price of the tv show.

TvShowEntity.Builder

Sets the total number of seasons in the current tv show.

TvShowEntity.Builder

Sets the watch next type of the video entity.

Public constructors

Builder

public Builder()

Public methods

addAllAvailabilityTimeWindows

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

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public TvShowEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addContentRating

@CanIgnoreReturnValue
public TvShowEntity.Builder addContentRating(RatingSystem contentRating)

Add the rating system for the tv show.

Required.

addContentRating

@CanIgnoreReturnValue
public TvShowEntity.Builder addContentRating(String rating)

Adds content rating of the tv show.

Required.

addContentRatings

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

Add the rating systems for the tv show.

Required.

addContentRatingsLegacy

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

Adds content ratings of the tv show.

Required.

addGenre

@CanIgnoreReturnValue
public TvShowEntity.Builder addGenre(String genre)

Adds genre of the tv show.

Optional.

addGenres

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

Adds genres of the tv show.

Optional.

addPosterImage

@CanIgnoreReturnValue
public TvShowEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public TvShowEntity build()

setAvailability

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

Sets the availability of the tv show.

Required.

setEntityId

@CanIgnoreReturnValue
public TvShowEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setFirstEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
public TvShowEntity.Builder setFirstEpisodeAirDateEpochMillis(long firstEpisodeAirDateEpochMillis)

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public TvShowEntity.Builder setInfoPageUri(Uri infoPageUri)

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

Required.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public TvShowEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public TvShowEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

Optional.

setLatestEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
public TvShowEntity.Builder setLatestEpisodeAirDateEpochMillis(
    long latestEpisodeAirDateEpochMillis
)

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

Optional.

setName

@CanIgnoreReturnValue
public TvShowEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public TvShowEntity.Builder setPlayBackUri(Uri playBackUri)

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

Optional.

setPrice

@CanIgnoreReturnValue
public TvShowEntity.Builder setPrice(Price price)

Adds the price of the tv show.

Optional.

setSeasonCount

@CanIgnoreReturnValue
public TvShowEntity.Builder setSeasonCount(int seasonCount)

Sets the total number of seasons in the current tv show.

Required.

setWatchNextType

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

Sets the watch next type of the video entity.

Optional.