TvShowEntity


public final class TvShowEntity extends Entity


An object representing a tv show.

Summary

Nested types

public final class TvShowEntity.Builder

Builder class for TvShowEntity.

Public fields

final int
final List<RatingSystem>
final List<String>

This field is deprecated.

Use contentRatings instead.

final Uri
final int

Public methods

int

Returns the availability of the tv show.

List<DisplayTimeWindow>

Returns the availability time windows of the video entity.

List<RatingSystem>

Returns the rating systems for the tv show.

List<String>

This method is deprecated.

use getContentRatings instead

Optional<String>

Returns the id of the entity.

Optional<Long>

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

List<String>

Returns the genres of the tv show.

Uri

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

Optional<Long>

Returns the last engagement time in milliseconds.

Optional<Long>

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

Optional<Long>

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

String

Returns the name of the entity.

Optional<Uri>

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

List<Image>

Returns the poster image of the entity.

Optional<Price>

Returns the price of the tv show, if available

int

Returns the total number of seasons in the current tv show.

Optional<Integer>

Returns watch next type of the video entity.

Public fields

availability

public final int availability

contentRatings

public final List<RatingSystemcontentRatings

contentRatingsLegacy

public final List<StringcontentRatingsLegacy

infoPageUri

public final Uri infoPageUri

seasonCount

public final int seasonCount

Public methods

getAvailability

@ContentAvailability
public int getAvailability()

Returns the availability of the tv show.

getAvailabilityTimeWindows

public List<DisplayTimeWindowgetAvailabilityTimeWindows()

Returns the availability time windows of the video entity.

getContentRatings

public List<RatingSystemgetContentRatings()

Returns the rating systems for the tv show.

getContentRatingsLegacy

public List<StringgetContentRatingsLegacy()

Returns the content ratings of the tv show.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getFirstEpisodeAirDateEpochMillis

public Optional<LonggetFirstEpisodeAirDateEpochMillis()

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

getGenres

public List<StringgetGenres()

Returns the genres of the tv show.

getInfoPageUri

public Uri getInfoPageUri()

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

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.

getLatestEpisodeAirDateEpochMillis

public Optional<LonggetLatestEpisodeAirDateEpochMillis()

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

getName

public String getName()

Returns the name of the entity.

getPlayBackUri

public Optional<UrigetPlayBackUri()

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

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getPrice

public Optional<PricegetPrice()

Returns the price of the tv show, if available

getSeasonCount

public int getSeasonCount()

Returns the total number of seasons in the current tv show.

getWatchNextType

public Optional<IntegergetWatchNextType()

Returns watch next type of the video entity.