TvEpisodeEntity

public final class TvEpisodeEntity extends Entity


An object representing a tv episode.

Summary

Nested types

public final class TvEpisodeEntity.Builder

Builder class for TvEpisodeEntity.

Public fields

final long
final int
final long
final Uri

Public methods

long

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

int

Returns the availability of the episode.

List<DisplayTimeWindow>

Returns the availability time windows of the video entity.

List<RatingSystem>

Returns the rating systems for the tv episode.

List<String>

This method is deprecated.

use getContentRatings instead

long

Returns the duration of the tv episode, in milliseconds.

Optional<String>

Returns the id of the entity.

Optional<String>

Returns the episode number of the tv episode.

List<String>

Returns the genres of the tv episode.

Optional<Uri>

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

Optional<Boolean>

Returns if next episode is available.

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 live tv episode.

Uri

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

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the tv episode, if available

Optional<String>

Returns the season number of the tv episode.

Optional<String>

Returns the season title of the tv episode.

Optional<String>

Returns the show title of the tv episode.

Optional<Integer>

Returns watch next type of the video entity.

boolean

Returns whether the tv episode is downloaded on device or not

Public fields

airDateEpochMillis

public final long airDateEpochMillis

availability

public final int availability

durationMillis

public final long durationMillis

playBackUri

public final Uri playBackUri

Public methods

getAirDateEpochMillis

public long getAirDateEpochMillis()

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

getAvailability

@ContentAvailability
public int getAvailability()

Returns the availability of the episode.

getAvailabilityTimeWindows

public List<DisplayTimeWindowgetAvailabilityTimeWindows()

Returns the availability time windows of the video entity.

getContentRatings

public List<RatingSystemgetContentRatings()

Returns the rating systems for the tv episode.

getContentRatingsLegacy

public List<StringgetContentRatingsLegacy()

Returns the content ratings of the tv episode.

getDurationMillis

public long getDurationMillis()

Returns the duration of the tv episode, in milliseconds.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getEpisodeDisplayNumber

public Optional<StringgetEpisodeDisplayNumber()

Returns the episode number of the tv episode.

getGenres

public List<StringgetGenres()

Returns the genres of the tv episode.

getInfoPageUri

public Optional<UrigetInfoPageUri()

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

getIsNextEpisodeAvailable

public Optional<BooleangetIsNextEpisodeAvailable()

Returns if next episode is available.

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 live tv episode.

getPlayBackUri

public Uri getPlayBackUri()

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

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the tv episode, if available

getSeasonNumber

public Optional<StringgetSeasonNumber()

Returns the season number of the tv episode.

getSeasonTitle

public Optional<StringgetSeasonTitle()

Returns the season title of the tv episode.

getShowTitle

public Optional<StringgetShowTitle()

Returns the show title of the tv episode.

getWatchNextType

public Optional<IntegergetWatchNextType()

Returns watch next type of the video entity.

isDownloadedOnDevice

public boolean isDownloadedOnDevice()

Returns whether the tv episode is downloaded on device or not