MovieEntity.Builder


class MovieEntity.Builder


Builder class for MovieEntity.

Summary

Public constructors

Public functions

MovieEntity.Builder!

Adds the availability time windows of the video entity.

MovieEntity.Builder!

Adds the availability time window of the video entity.

MovieEntity.Builder!

Add the rating system for the movie.

MovieEntity.Builder!

This function is deprecated.

use addContentRating(RatingSystem) instead

MovieEntity.Builder!

Add the rating systems for the movie.

MovieEntity.Builder!

This function is deprecated.

use addContentRatings(List<RatingSystem>) instead

MovieEntity.Builder!

add genre of the movie.

MovieEntity.Builder!

add genres of the movie.

MovieEntity.Builder!

Add platform specific playback uri for the movie entity.

MovieEntity.Builder!

Add platform specific playback uris for the movie entity.

MovieEntity.Builder!

Add a poster image of the entity.

MovieEntity.Builder!

Add poster images of the entity.

MovieEntity!
MovieEntity.Builder!

Sets the availability of the movie.

MovieEntity.Builder!

Sets a boolean value to indicate if movie is downloaded on device or not.

MovieEntity.Builder!

Sets duration of the movie, in milliseconds.

MovieEntity.Builder!

Sets content id of the entity.

MovieEntity.Builder!

Sets the deeplink to open the details info page.

MovieEntity.Builder!

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

MovieEntity.Builder!

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

MovieEntity.Builder!

Sets the name of the entity.

MovieEntity.Builder!

Sets the deeplink to start playing the movie.

MovieEntity.Builder!

Adds the price of the movie.

MovieEntity.Builder!

Sets the release date of the movie, in milliseconds since Epoch.

MovieEntity.Builder!

Sets the watch next type of the video entity.

Public constructors

Builder

Builder()

Public functions

addAllAvailabilityTimeWindows

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

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

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

Adds the availability time window of the video entity.

Optional.

addContentRating

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

Add the rating system for the movie.

Required.

addContentRating

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

add content rating of the movie.

Required.

addContentRatings

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

Add the rating systems for the movie.

Required.

addContentRatingsLegacy

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

add content rating of the movie.

Required.

addGenre

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

add genre of the movie.

Required.

addGenres

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

add genres of the movie.

Optional.

addPlatformSpecificPlaybackUri

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

Add platform specific playback uri for the movie entity.

Optional.

addPlatformSpecificPlaybackUris

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

Add platform specific playback uris for the movie entity.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): MovieEntity!

setAvailability

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

Sets the availability of the movie.

Required.

setDownloadedOnDevice

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

Sets a boolean value to indicate if movie is downloaded on device or not.

Optional.

setDurationMillis

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

Sets duration of the movie, in milliseconds.

Required.

setEntityId

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

Sets content id of the entity.

Optional.

setInfoPageUri

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

Sets the deeplink to open the details info page.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setLastPlayBackPositionTimeMillis

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

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

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

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

Sets the deeplink to start playing the movie.

Required.

setPrice

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

Adds the price of the movie.

Optional.

setReleaseDateEpochMillis

@CanIgnoreReturnValue
fun setReleaseDateEpochMillis(releaseDateEpochMillis: Long): MovieEntity.Builder!

Sets the release date of the movie, in milliseconds since Epoch.

Optional.

setWatchNextType

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

Sets the watch next type of the video entity.

Optional.