TvEpisodeEntity.Builder


class TvEpisodeEntity.Builder


Builder class for TvEpisodeEntity.

Summary

Public constructors

Public functions

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

use addContentRating(RatingSystem) instead

TvEpisodeEntity.Builder!

Add the rating systems for the tv episode.

TvEpisodeEntity.Builder!

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

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!

Sets if next episode is available.

TvEpisodeEntity.Builder!

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

TvEpisodeEntity.Builder!

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

Builder()

Public functions

addAllAvailabilityTimeWindows

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

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

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

Adds the availability time window of the video entity.

Optional.

addContentRating

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

Add the rating system for the tv episode.

Required.

addContentRating

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

add content rating of the tv episode.

Required.

addContentRatings

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

Add the rating systems for the tv episode.

Required.

addContentRatingsLegacy

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

add content ratings of the tv episode.

Required.

addGenre

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

add genre of the tv episode.

Optional.

addGenres

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

add genres of the tv episode.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUri(
    platformSpecificPlaybackUri: PlatformSpecificUri!
): TvEpisodeEntity.Builder!

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

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
fun addPlatformSpecificPlaybackUris(
    platformSpecificPlaybackUris: (Mutable)List<PlatformSpecificUri!>!
): TvEpisodeEntity.Builder!

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

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): TvEpisodeEntity!

setAirDateEpochMillis

@CanIgnoreReturnValue
fun setAirDateEpochMillis(airDateEpochMillis: Long): TvEpisodeEntity.Builder!

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

Required.

setAvailability

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

Sets the availability of the episode.

Required.

setDownloadedOnDevice

@CanIgnoreReturnValue
fun setDownloadedOnDevice(downloadedOnDevice: Boolean): TvEpisodeEntity.Builder!

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
fun setDurationMillis(durationMillis: Long): TvEpisodeEntity.Builder!

Sets the duration of the tv episode, in milliseconds.

Required.

setEntityId

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

Sets content id of the entity.

Optional.

setEpisodeDisplayNumber

@CanIgnoreReturnValue
fun setEpisodeDisplayNumber(episodeDisplayNumber: String!): TvEpisodeEntity.Builder!

Sets the episode display number in the current season.

Required.

setEpisodeNumber

@CanIgnoreReturnValue
fun setEpisodeNumber(episodeNumber: Int): TvEpisodeEntity.Builder!

Sets the episode number in the current season.

Required.

setInfoPageUri

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

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

Optional.

setIsNextEpisodeAvailable

@CanIgnoreReturnValue
fun setIsNextEpisodeAvailable(isNextEpisodeAvailable: Boolean): TvEpisodeEntity.Builder!

Sets if next episode is available.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setLastPlayBackPositionTimeMillis

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

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

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

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

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

Required.

setPrice

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

Adds the price of the tv episode.

Optional.

setSeasonNumber

@CanIgnoreReturnValue
fun setSeasonNumber(seasonNumber: String!): TvEpisodeEntity.Builder!

Sets the season number of the tv episode.

Optional.

setSeasonTitle

@CanIgnoreReturnValue
fun setSeasonTitle(seasonTitle: String!): TvEpisodeEntity.Builder!

Sets the season title of the tv episode.

Optional.

setShowTitle

@CanIgnoreReturnValue
fun setShowTitle(showTitle: String!): TvEpisodeEntity.Builder!

Sets the show title of the tv episode.

Optional.

setWatchNextType

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

Sets the watch next type of the video entity.

Optional.