Segment

data class Segment(val id: String? = null, val name: String? = null, val locale: String? = null, val primaryId: String? = null, val link: Link? = null, val embeddedGenre: EmbeddedGenre? = null)

Represents a segment in the Discovery API.

Holds segment details, including ID, name, locale, and embedded genres.

Constructors

Link copied to clipboard
constructor(id: String? = null, name: String? = null, locale: String? = null, primaryId: String? = null, link: Link? = null, embeddedGenre: EmbeddedGenre? = null)

Properties

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

Embedded genre data, if available.

Link copied to clipboard
val id: String? = null

The segment's ID, if available.

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

The link associated with the segment, if available.

Link copied to clipboard
val locale: String? = null

The segment's locale, if available.

Link copied to clipboard
val name: String? = null

The segment's name, if available.

Link copied to clipboard
val primaryId: String? = null

The primary ID of the segment, if available.