TvShowEntity.Builder

class TvShowEntity.Builder


Builder class for TvShowEntity.

Summary

Public constructors

Public functions

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 function is deprecated.

use addContentRating(RatingSystem) instead

TvShowEntity.Builder!

Add the rating systems for the tv show.

TvShowEntity.Builder!

This function 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!

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!

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

TvShowEntity.Builder!

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

TvShowEntity.Builder!
@CanIgnoreReturnValue
setLatestEpisodeAirDateEpochMillis(
    latestEpisodeAirDateEpochMillis: Long
)

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

Builder()

Public functions

addAllAvailabilityTimeWindows

@CanIgnoreReturnValue
fun addAllAvailabilityTimeWindows(
    availabilityTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): TvShowEntity.Builder!

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
fun addAvailabilityTimeWindow(availabilityTimeWindow: DisplayTimeWindow!): TvShowEntity.Builder!

Adds the availability time window of the video entity.

Optional.

addContentRating

@CanIgnoreReturnValue
fun addContentRating(contentRating: RatingSystem!): TvShowEntity.Builder!

Add the rating system for the tv show.

Required.

addContentRating

@CanIgnoreReturnValue
fun addContentRating(rating: String!): TvShowEntity.Builder!

Adds content rating of the tv show.

Required.

addContentRatings

@CanIgnoreReturnValue
fun addContentRatings(contentRatings: (Mutable)List<RatingSystem!>!): TvShowEntity.Builder!

Add the rating systems for the tv show.

Required.

addContentRatingsLegacy

@CanIgnoreReturnValue
fun addContentRatingsLegacy(ratings: (Mutable)List<String!>!): TvShowEntity.Builder!

Adds content ratings of the tv show.

Required.

addGenre

@CanIgnoreReturnValue
fun addGenre(genre: String!): TvShowEntity.Builder!

Adds genre of the tv show.

Optional.

addGenres

@CanIgnoreReturnValue
fun addGenres(genres: (Mutable)List<String!>!): TvShowEntity.Builder!

Adds genres of the tv show.

Optional.

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): TvShowEntity.Builder!

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): TvShowEntity.Builder!

Add poster images of the entity.

Required.

build

fun build(): TvShowEntity!

setAvailability

@CanIgnoreReturnValue
fun setAvailability(@ContentAvailability availability: Int): TvShowEntity.Builder!

Sets the availability of the tv show.

Required.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): TvShowEntity.Builder!

Sets content id of the entity.

Optional.

setFirstEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
fun setFirstEpisodeAirDateEpochMillis(firstEpisodeAirDateEpochMillis: Long): TvShowEntity.Builder!

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
fun setInfoPageUri(infoPageUri: Uri!): TvShowEntity.Builder!

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

Required.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
fun setLastEngagementTimeMillis(lastEngagementTimeMillis: Long): TvShowEntity.Builder!

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
fun setLastPlayBackPositionTimeMillis(lastPlayBackPositionTimeMillis: Long): TvShowEntity.Builder!

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

Optional.

setLatestEpisodeAirDateEpochMillis

@CanIgnoreReturnValue
fun setLatestEpisodeAirDateEpochMillis(
    latestEpisodeAirDateEpochMillis: Long
): TvShowEntity.Builder!

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

Optional.

setName

@CanIgnoreReturnValue
fun setName(name: String!): TvShowEntity.Builder!

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
fun setPlayBackUri(playBackUri: Uri!): TvShowEntity.Builder!

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

Optional.

setPrice

@CanIgnoreReturnValue
fun setPrice(price: Price!): TvShowEntity.Builder!

Adds the price of the tv show.

Optional.

setSeasonCount

@CanIgnoreReturnValue
fun setSeasonCount(seasonCount: Int): TvShowEntity.Builder!

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

Required.

setWatchNextType

@CanIgnoreReturnValue
fun setWatchNextType(@WatchNextType watchNextType: Int): TvShowEntity.Builder!

Sets the watch next type of the video entity.

Optional.