MovieEntity


public final class MovieEntity extends Entity


An object representing a movie.

Summary

Nested types

public final class MovieEntity.Builder

Builder class for MovieEntity.

Public fields

final int
final long
final Uri

Public methods

int

Returns the availability of the movie.

List<DisplayTimeWindow>

Returns the availability time windows of the video entity.

List<RatingSystem>

Returns the rating systems for the movie

List<String>

This method is deprecated.

use getContentRatings instead

long

Returns the duration of the movie, in milliseconds.

Optional<String>

Returns the id of the entity.

List<String>

Returns the genres of the movie.

Optional<Uri>

Returns the deeplink to open the details info page of the movie.

Optional<Long>

Returns the last engagement time in milliseconds.

Optional<Long>

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

String

Returns the name of the entity.

List<PlatformSpecificUri>

Returns the platform specific playback uris for the movie entity.

Uri

Returns the on device deeplink to start playing the movie.

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the movie, if available

Optional<Long>

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

Optional<Integer>

Returns watch next type of the video entity.

boolean

Returns whether the movie is downloaded on device or not

Public fields

availability

public final int availability

durationMillis

public final long durationMillis

playBackUri

public final Uri playBackUri

Public methods

getAvailability

@ContentAvailability
public int getAvailability()

Returns the availability of the movie.

getAvailabilityTimeWindows

public List<DisplayTimeWindowgetAvailabilityTimeWindows()

Returns the availability time windows of the video entity.

getContentRatings

public List<RatingSystemgetContentRatings()

Returns the rating systems for the movie

getContentRatingsLegacy

public List<StringgetContentRatingsLegacy()

Returns the content ratings for the movie.

getDurationMillis

public long getDurationMillis()

Returns the duration of the movie, in milliseconds.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getGenres

public List<StringgetGenres()

Returns the genres of the movie.

getInfoPageUri

public Optional<UrigetInfoPageUri()

Returns the deeplink to open the details info page of the movie.

getLastEngagementTimeMillis

public Optional<LonggetLastEngagementTimeMillis()

Returns the last engagement time in milliseconds.

getLastPlayBackPositionTimeMillis

public Optional<LonggetLastPlayBackPositionTimeMillis()

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

getName

public String getName()

Returns the name of the entity.

getPlatformSpecificPlaybackUris

public List<PlatformSpecificUrigetPlatformSpecificPlaybackUris()

Returns the platform specific playback uris for the movie entity.

getPlayBackUri

public Uri getPlayBackUri()

Returns the on device deeplink to start playing the movie.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the movie, if available

getReleaseDateEpochMillis

public Optional<LonggetReleaseDateEpochMillis()

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

getWatchNextType

public Optional<IntegergetWatchNextType()

Returns watch next type of the video entity.

isDownloadedOnDevice

public boolean isDownloadedOnDevice()

Returns whether the movie is downloaded on device or not