Genre

data class Genre(val id: String? = null, val name: String? = null, val links: Links? = null, val locale: String? = null, val embeddedSubGenre: EmbeddedSubGenre? = null)

Represents a genre in the Discovery API.

Holds genre details, including ID, name, links, locale, and subgenres.

Constructors

Link copied to clipboard
constructor(id: String? = null, name: String? = null, links: Links? = null, locale: String? = null, embeddedSubGenre: EmbeddedSubGenre? = null)

Properties

Link copied to clipboard
@SerializedName(value = "_embedded")
val embeddedSubGenre: EmbeddedSubGenre? = null

Embedded subgenre data, if available.

Link copied to clipboard
val id: String? = null

The genre's ID, if available.

Link copied to clipboard
@SerializedName(value = "_links")
val links: Links? = null

Links associated with the genre, if available.

Link copied to clipboard
val locale: String? = null

The genre's locale, if available.

Link copied to clipboard
val name: String? = null

The genre's name, if available.