# TvSeasonEntity

# TvSeasonEntity

*** ** * ** ***

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

<br />

```
class TvSeasonEntity : 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.TvSeasonEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity) |

*** ** * ** ***

An object representing a tv season.

## Summary

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

|                                                                                                                                                           ### 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/TvSeasonEntity#getAvailabilityTimeWindows())`()` Returns the availability time windows of the video entity.                                                                                                                                       |
| `(`[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)`!>!`            | [getContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getContentRatings())`()` Returns the rating systems for the tv season.                                                                                                                                                                      |
| `(`[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)`!>!`                                                 | ~~[getContentRatingsLegacy](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getContentRatingsLegacy())~~`()` **This function is deprecated.** use[getContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getContentRatings())instead <br /> |
| [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/TvSeasonEntity#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/TvSeasonEntity#getFirstEpisodeAirDateEpochMillis())`()` Returns the air date of the first episode in this season, 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/TvSeasonEntity#getGenres())`()` Returns the genres of the tv season.                                                                                                                                                                                               |
| [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/TvSeasonEntity#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/TvSeasonEntity#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/TvSeasonEntity#getLatestEpisodeAirDateEpochMillis())`()` Returns the air date of the latest episode in this season, 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/TvSeasonEntity#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/TvSeasonEntity#getPlayBackUri())`()` Returns the on device deeplink to start playing the tv season.                                                                                                                                                           |
| `(`[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/TvSeasonEntity#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/TvSeasonEntity#getPrice())`()` Returns the price of the tv season, if available                                                                                                                                                                                     |
| [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)`!>!`                                                                                                                                                         | [getSeasonDisplayNumber](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getSeasonDisplayNumber())`()` Returns the season display number of the tv season.                                                                                                                                                      |
| [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/TvSeasonEntity#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/TvSeasonEntity#availability()) |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [episodeCount](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#episodeCount()) |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`     | [infoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#infoPageUri())   |

|                                                                                                                                                                                                                                                                                         ### 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.  

### getContentRatings

```
fun getContentRatings(): (Mutable)List<RatingSystem!>!
```

Returns the rating systems for the tv season.  

### getContentRatingsLegacy

```
fun [getContentRatingsLegacy](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getContentRatingsLegacy())(): (Mutable)List<String!>!
```
| **This function is deprecated.**   
|
| use[getContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/TvSeasonEntity#getContentRatings())instead

Returns the content ratings of the tv season.  

### 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 season, in milliseconds since Epoch.  

### getGenres

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

Returns the genres of the tv season.  

### 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 season, 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 season.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

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

Returns the price of the tv season, if available  

### getSeasonDisplayNumber

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

Returns the season display number of the tv season.  

### getWatchNextType

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

Returns watch next type of the video entity.  

## Public properties

### availability

```
val availability: Int
```  

### episodeCount

```
val episodeCount: Int
```  

### infoPageUri

```
val infoPageUri: Uri!
```