MovieEntity.Builder


public final class MovieEntity.Builder


Builder class for MovieEntity.

Summary

Public constructors

Public methods

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

use addContentRating(RatingSystem) instead

MovieEntity.Builder

Add the rating systems for the movie.

MovieEntity.Builder

This method 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
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

MovieEntity.Builder
@CanIgnoreReturnValue
setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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
@CanIgnoreReturnValue
setReleaseDateEpochMillis(long releaseDateEpochMillis)

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

public Builder()

Public methods

addAllAvailabilityTimeWindows

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

Adds the availability time windows of the video entity.

Optional.

addAvailabilityTimeWindow

@CanIgnoreReturnValue
public MovieEntity.Builder addAvailabilityTimeWindow(DisplayTimeWindow availabilityTimeWindow)

Adds the availability time window of the video entity.

Optional.

addContentRating

@CanIgnoreReturnValue
public MovieEntity.Builder addContentRating(RatingSystem contentRating)

Add the rating system for the movie.

Required.

addContentRating

@CanIgnoreReturnValue
public MovieEntity.Builder addContentRating(String rating)

add content rating of the movie.

Required.

addContentRatings

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

Add the rating systems for the movie.

Required.

addContentRatingsLegacy

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

add content rating of the movie.

Required.

addGenre

@CanIgnoreReturnValue
public MovieEntity.Builder addGenre(String genre)

add genre of the movie.

Required.

addGenres

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

add genres of the movie.

Optional.

addPlatformSpecificPlaybackUri

@CanIgnoreReturnValue
public MovieEntity.Builder addPlatformSpecificPlaybackUri(
    PlatformSpecificUri platformSpecificPlaybackUri
)

Add platform specific playback uri for the movie entity.

Optional.

addPlatformSpecificPlaybackUris

@CanIgnoreReturnValue
public MovieEntity.Builder addPlatformSpecificPlaybackUris(
    List<PlatformSpecificUri> platformSpecificPlaybackUris
)

Add platform specific playback uris for the movie entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public MovieEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public MovieEntity build()

setAvailability

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

Sets the availability of the movie.

Required.

setDownloadedOnDevice

@CanIgnoreReturnValue
public MovieEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
public MovieEntity.Builder setDurationMillis(long durationMillis)

Sets duration of the movie, in milliseconds.

Required.

setEntityId

@CanIgnoreReturnValue
public MovieEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public MovieEntity.Builder setInfoPageUri(Uri infoPageUri)

Sets the deeplink to open the details info page.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public MovieEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setLastPlayBackPositionTimeMillis

@CanIgnoreReturnValue
public MovieEntity.Builder setLastPlayBackPositionTimeMillis(long lastPlayBackPositionTimeMillis)

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

Optional.

setName

@CanIgnoreReturnValue
public MovieEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public MovieEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the deeplink to start playing the movie.

Required.

setPrice

@CanIgnoreReturnValue
public MovieEntity.Builder setPrice(Price price)

Adds the price of the movie.

Optional.

setReleaseDateEpochMillis

@CanIgnoreReturnValue
public MovieEntity.Builder setReleaseDateEpochMillis(long releaseDateEpochMillis)

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

Optional.

setWatchNextType

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

Sets the watch next type of the video entity.

Optional.