# TvShowEntity

# TvShowEntity

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/video/datamodel/TvShowEntity "View this page in Java")  

<br />

```
class TvShowEntity : Entity
```

<br />

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                     |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)              ||
|   | ↳ | [com.google.android.engage.video.datamodel.TvShowEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity) |

*** ** * ** ***

An object representing a tv show.

## Summary

|                                                                                                                                   ### Nested types                                                                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[TvShowEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity.Builder) Builder class for[TvShowEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity). |

|                                                                                                                                                           ### Public functions                                                                                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` | [getAvailabilityTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getAvailabilityTimeWindows())`()` Returns the availability time windows of the video entity.                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                                         | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getDescription())`()` Returns the description of the entity.                                                                                        |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                                         | [getEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getEntityId())`()` Returns the id of the entity.                                                                                                       |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                             | [getFirstEpisodeAirDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getFirstEpisodeAirDateEpochMillis())`()` Returns the air date of the first episode in this show, in milliseconds since Epoch.    |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                 | [getGenres](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getGenres())`()` Returns the genres of the tv show.                                                                                                      |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                             | [getLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                             | [getLastPlayBackPositionTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getLastPlayBackPositionTimeMillis())`()` Returns last play back position of the video entity, in milliseconds.                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                             | [getLatestEpisodeAirDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getLatestEpisodeAirDateEpochMillis())`()` Returns the air date of the latest episode in this show, in milliseconds since Epoch. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                                                       | [getName](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getName())`()` Returns the name of the entity.                                                                                                             |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Uri](https://developer.android.com/reference/android/net/Uri.html)`!>!`                                                                                                                                                                      | [getPlayBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getPlayBackUri())`()` Returns the on device deeplink to start playing the tv show.                                                                  |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!`                         | [getPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!>!`                                                                                                                                 | [getPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getPrice())`()` Returns the price of the tv show, if available                                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[RecommendationReason](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/RecommendationReason)`!>!`                                                                                                   | [getRecommendationReason](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getRecommendationReason())`()` Returns the recommendation reason of the entity.                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                                               | [getWatchNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#getWatchNextType())`()` Returns watch next type of the video entity.                                                                              |

|                                                                                                                                                     ### Public properties                                                                                                                                                      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                                                     | [availability](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#availability())                                                                                                                                                                                                             |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[RatingSystem](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/RatingSystem)`!>!` | [contentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#contentRatings())                                                                                                                                                                                                         |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                      | [contentRatingsLegacy](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#contentRatingsLegacy()) **This property is deprecated.** Use[contentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#contentRatings())instead. <br /> |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`                                                                                                                                                                                                                                                         | [infoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#infoPageUri())                                                                                                                                                                                                               |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[PlatformSpecificUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/PlatformSpecificUri)`!>!`                                                                             | [platformSpecificPlaybackUris](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#platformSpecificPlaybackUris())                                                                                                                                                                             |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                                                     | [seasonCount](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#seasonCount())                                                                                                                                                                                                               |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getAvailabilityTimeWindows

```
fun getAvailabilityTimeWindows(): (Mutable)List<DisplayTimeWindow!>!
```

Returns the availability time windows of the video entity.  

### getDescription

```
fun getDescription(): Optional<String!>!
```

Returns the description of the entity.  

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the id of the entity.  

### getFirstEpisodeAirDateEpochMillis

```
fun getFirstEpisodeAirDateEpochMillis(): Optional<Long!>!
```

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

### getGenres

```
fun getGenres(): (Mutable)List<String!>!
```

Returns the genres of the tv show.  

### getLastEngagementTimeMillis

```
fun getLastEngagementTimeMillis(): Optional<Long!>!
```

Returns the last engagement time in milliseconds.  

### getLastPlayBackPositionTimeMillis

```
fun getLastPlayBackPositionTimeMillis(): Optional<Long!>!
```

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

### getLatestEpisodeAirDateEpochMillis

```
fun getLatestEpisodeAirDateEpochMillis(): Optional<Long!>!
```

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

### getName

```
fun getName(): String!
```

Returns the name of the entity.  

### getPlayBackUri

```
fun getPlayBackUri(): Optional<Uri!>!
```

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

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the entity.  

### getPrice

```
fun getPrice(): Optional<Price!>!
```

Returns the price of the tv show, if available  

### getRecommendationReason

```
fun getRecommendationReason(): Optional<RecommendationReason!>!
```

Returns the recommendation reason of the entity.  

### getWatchNextType

```
fun getWatchNextType(): Optional<Int!>!
```

Returns watch next type of the video entity.  

## Public properties

### availability

```
val availability: Int
```  

### contentRatings

```
val contentRatings: (Mutable)List<RatingSystem!>!
```  

### contentRatingsLegacy

```
val contentRatingsLegacy: (Mutable)List<String!>!
```
| **This property is deprecated.**   
|
Use[contentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvShowEntity#contentRatings())instead.  

### infoPageUri

```
val infoPageUri: Uri!
```  

### platformSpecificPlaybackUris

```
val platformSpecificPlaybackUris: ImmutableList<PlatformSpecificUri!>!
```  

### seasonCount

```
val seasonCount: Int
```