Subtitle

data class Subtitle(val language: String, val type: SubtitleSource = ONLINE, val url: String, val flags: Set<Flag>? = null) : MediaLink, Serializable(source)

Data class representing a subtitle entity.

This data class encapsulates information about a subtitle, including its URL, language, and source type.

Constructors

Link copied to clipboard
constructor(language: String, type: SubtitleSource = ONLINE, url: String, flags: Set<Flag>? = null)

Properties

Link copied to clipboard

A map of custom headers associated with the media link if Flag.RequiresAuth is present in flags.

Link copied to clipboard
open val description: String? = null

An optional description of the media link.

Link copied to clipboard
open override val flags: Set<Flag>? = null

A set of resource Flags associated with the subtitle. Default is null

Link copied to clipboard
@SerializedName(value = "language", alternate = ["lang"])
val language: String

The language of the subtitle.

Link copied to clipboard
open override val name: String

The name of the subtitle, derived from the language.

Link copied to clipboard

The source type of the subtitle, indicating whether it's online, local, or embedded. Default is SubtitleSource.ONLINE

Link copied to clipboard
open override val url: String

The URL of the subtitle.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int