MovieItem

data class MovieItem(val id: String, val title: String, val imageSource: AppImageSource, val rating: Double? = null, val year: String = "", val duration: String = "", val contentRating: String = "", val genre: String = "", val type: String = "", val isPremium: Boolean = false, val primaryInfo: String? = null, val secondaryInfo: String? = null, val rank: Int? = null, val youtubeVideoId: String? = null)

Data class representing a movie or series item in the design system.

Constructors

Link copied to clipboard
constructor(id: String, title: String, imageSource: AppImageSource, rating: Double? = null, year: String = "", duration: String = "", contentRating: String = "", genre: String = "", type: String = "", isPremium: Boolean = false, primaryInfo: String? = null, secondaryInfo: String? = null, rank: Int? = null, youtubeVideoId: String? = null)

Properties

Link copied to clipboard

Parental guidance rating (e.g., "PG-13").

Link copied to clipboard

Duration description (e.g., "120 min" or "1h 30m").

Link copied to clipboard

Main genre of the content.

Link copied to clipboard
val id: String

Unique identifier for the movie.

Link copied to clipboard

The source for the poster image (Resource, URL, etc).

Link copied to clipboard

Whether the content requires a premium subscription.

Link copied to clipboard

Optional short text displayed on a primary badge over the poster.

Link copied to clipboard
val rank: Int?

Optional rank number for "Top 10" style carousels.

Link copied to clipboard

Numeric rating (e.g., 4.5).

Link copied to clipboard

Optional short text displayed on a secondary badge over the poster.

Link copied to clipboard

The name of the movie or series.

Link copied to clipboard

Content type (e.g., "Movie", "TV Series").

Link copied to clipboard

Release year as a string.

Link copied to clipboard

Optional YouTube video ID for trailers/previews.