# MovieEntity

# MovieEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a movie.

## Summary

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

|                                                                                                                                                             ### 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/MovieEntity#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/MovieEntity#getContentRatings())`()` Returns the rating systems for the movie                                                                                                                                                                        |
| `(`[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/MovieEntity#getContentRatingsLegacy())~~`()` **This function is deprecated.** use[getContentRatings](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#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)`!>!`                                                                                                                                                             | [getDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#getDescription())`()` Returns the description of the movie.                                                                                                                                                                                 |
| [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/MovieEntity#getEntityId())`()` Returns the id of the 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)`<`[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/MovieEntity#getGenres())`()` Returns the genres of the movie.                                                                                                                                                                                                |
| [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)`!>!`                                                                                                                                                                          | [getInfoPageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#getInfoPageUri())`()` Returns the deeplink to open the details info page of the movie.                                                                                                                                                      |
| [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/MovieEntity#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/MovieEntity#getLastPlayBackPositionTimeMillis())`()` Returns last play back position of the video entity, in milliseconds.                                                                                                           |
| [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/MovieEntity#getName())`()` Returns the name of the 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)`<`[PlatformSpecificUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/PlatformSpecificUri)`!>!` | [getPlatformSpecificPlaybackUris](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#getPlatformSpecificPlaybackUris())`()` Returns the platform specific playback uris for the movie 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)`<`[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/MovieEntity#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/MovieEntity#getPrice())`()` Returns the price of the movie, 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/MovieEntity#getRecommendationReason())`()` Returns the recommendation reason 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)`!>!`                                                                                                                                                                 | [getReleaseDateEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#getReleaseDateEpochMillis())`()` Returns the release date of the movie, in milliseconds since Epoch.                                                                                                                             |
| [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/MovieEntity#getWatchNextType())`()` Returns watch next type of the video entity.                                                                                                                                                                      |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                                            | [isDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#isDownloadedOnDevice())`()` Returns whether the movie is downloaded on device or not                                                                                                                                                  |

|                            ### 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/MovieEntity#availability())     |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [durationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#durationMillis()) |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`       | [playBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/MovieEntity#playBackUri())       |

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

### getContentRatingsLegacy

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

Returns the content ratings for the movie.  

### getDescription

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

Returns the description of the movie.  

### getEntityId

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

Returns the id of the entity.  

### getGenres

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

Returns the genres of the movie.  

### getInfoPageUri

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

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

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

### getName

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

Returns the name of the entity.  

### getPlatformSpecificPlaybackUris

```
fun getPlatformSpecificPlaybackUris(): (Mutable)List<PlatformSpecificUri!>!
```

Returns the platform specific playback uris for the movie entity.  

### getPosterImages

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

Returns the poster image of the entity.  

### getPrice

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

Returns the price of the movie, if available  

### getRecommendationReason

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

Returns the recommendation reason of the entity.  

### getReleaseDateEpochMillis

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

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

### getWatchNextType

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

Returns watch next type of the video entity.  

### isDownloadedOnDevice

```
fun isDownloadedOnDevice(): Boolean
```

Returns whether the movie is downloaded on device or not  

## Public properties

### availability

```
val availability: Int
```  

### durationMillis

```
val durationMillis: Long
```  

### playBackUri

```
val playBackUri: Uri!
```