PodcastEpisodeTrack

data class PodcastEpisodeTrack(album: SimpleAlbum, artists: List<SimpleArtist>, availableMarketsString: List<String>, discNumber: Int, durationMs: Int, episode: Boolean?, explicit: Boolean, externalUrlsString: Map<String, String>, externalIdsString: Map<String, String>, href: String, id: String, isLocal: Boolean?, isPlayable: Boolean, name: String, popularity: Int, previewUrl: String?, track: Boolean?, trackNumber: Int, type: String, uri: PlayableUri, linkedTrack: LinkedTrack?) : RelinkingAvailableResponse, Playable

An episode (podcast) on Spotify

Parameters

album

The album on which the track appears. The album object includes a link in href to full information about the album.

artists

The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist.

discNumber

The disc number (usually 1 unless the album consists of more than one disc).

durationMs

The track length in milliseconds.

explicit

Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).

isLocal

Whether or not the track is from a local file.

isPlayable

Part of the response when Track Relinking is applied. If true , the track is playable in the given market. Otherwise false.

name

The name of the track.

popularity

The popularity of the track. The value will be between 0 and 100, with 100 being the most popular. The popularity of a track is a value between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are. Generally speaking, songs that are being played a lot now will have a higher popularity than songs that were played a lot in the past. Duplicate tracks (e.g. the same track from a single and an album) are rated independently. Artist and album popularity is derived mathematically from track popularity. Note that the popularity value may lag actual popularity by a few days: the value is not updated in real time.

previewUrl

A link to a 30 second preview (MP3 format) of the track. Can be null.

track

Whether this episode is also a track.

trackNumber

The number of the track. If an album has several discs, the track number is the number on the specified disc.

type

The object type: “episode”.

Constructors

PodcastEpisodeTrack
Link copied to clipboard
common
fun PodcastEpisodeTrack(album: SimpleAlbum, artists: List<SimpleArtist>, availableMarketsString: List<String> = listOf(), discNumber: Int, durationMs: Int, episode: Boolean? = null, explicit: Boolean, externalUrlsString: Map<String, String>, externalIdsString: Map<String, String> = hashMapOf(), href: String, id: String, isLocal: Boolean? = null, isPlayable: Boolean = true, name: String, popularity: Int, previewUrl: String? = null, track: Boolean? = null, trackNumber: Int, type: String, uri: PlayableUri, linkedTrack: LinkedTrack? = null)
The album on which the track appears.

Functions

component1
Link copied to clipboard
common
operator fun component1(): SimpleAlbum
component10
Link copied to clipboard
common
operator fun component10(): String
component11
Link copied to clipboard
common
operator fun component11(): String
component12
Link copied to clipboard
common
operator fun component12(): Boolean?
component13
Link copied to clipboard
common
operator fun component13(): Boolean
component14
Link copied to clipboard
common
operator fun component14(): String
component15
Link copied to clipboard
common
operator fun component15(): Int
component16
Link copied to clipboard
common
operator fun component16(): String?
component17
Link copied to clipboard
common
operator fun component17(): Boolean?
component18
Link copied to clipboard
common
operator fun component18(): Int
component19
Link copied to clipboard
common
operator fun component19(): String
component2
Link copied to clipboard
common
operator fun component2(): List<SimpleArtist>
component20
Link copied to clipboard
common
operator fun component20(): PlayableUri
component21
Link copied to clipboard
common
operator fun component21(): LinkedTrack?
component4
Link copied to clipboard
common
operator fun component4(): Int
component5
Link copied to clipboard
common
operator fun component5(): Int
component6
Link copied to clipboard
common
operator fun component6(): Boolean?
component7
Link copied to clipboard
common
operator fun component7(): Boolean
copy
Link copied to clipboard
common
fun copy(album: SimpleAlbum, artists: List<SimpleArtist>, availableMarketsString: List<String> = listOf(), discNumber: Int, durationMs: Int, episode: Boolean? = null, explicit: Boolean, externalUrlsString: Map<String, String>, externalIdsString: Map<String, String> = hashMapOf(), href: String, id: String, isLocal: Boolean? = null, isPlayable: Boolean = true, name: String, popularity: Int, previewUrl: String? = null, track: Boolean? = null, trackNumber: Int, type: String, uri: PlayableUri, linkedTrack: LinkedTrack? = null): PodcastEpisodeTrack
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
isRelinked
Link copied to clipboard
common
fun isRelinked(): Boolean
Check if this response has been relinked.
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

album
Link copied to clipboard
common
val album: SimpleAlbum
The album on which the track appears.
api
Link copied to clipboard
common
lateinit var api: GenericSpotifyApi
The API client associated with the request
artists
Link copied to clipboard
common
val artists: List<SimpleArtist>
The artists who performed the track.
asLocalTrack
Link copied to clipboard
common
open val asLocalTrack: LocalTrack?
This Playable as a local track.
asPodcastEpisodeTrack
Link copied to clipboard
common
open val asPodcastEpisodeTrack: PodcastEpisodeTrack?
This Playable as an episode.
asTrack
Link copied to clipboard
common
open val asTrack: Track?
This Playable as a track.
availableMarkets
Link copied to clipboard
common
val availableMarkets: List<Market>
A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
discNumber
Link copied to clipboard
common
val discNumber: Int
The disc number (usually 1 unless the album consists of more than one disc).
durationMs
Link copied to clipboard
common
val durationMs: Int
The track length in milliseconds.
episode
Link copied to clipboard
common
val episode: Boolean? = null
explicit
Link copied to clipboard
common
val explicit: Boolean
Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).
externalIds
Link copied to clipboard
common
val externalIds: List<ExternalId>
externalUrls
Link copied to clipboard
common
val externalUrls: List<ExternalUrl>
Known external URLs for this object
href
Link copied to clipboard
common
open override val href: String
A link to the Spotify web api endpoint associated with this request
id
Link copied to clipboard
common
open override val id: String
The Spotify id of the associated object
isLocal
Link copied to clipboard
common
val isLocal: Boolean? = null
Whether or not the track is from a local file.
isPlayable
Link copied to clipboard
common
val isPlayable: Boolean = true
Part of the response when Track Relinking is applied.
linkedTrack
Link copied to clipboard
common
open override val linkedTrack: LinkedTrack? = null
Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists.
name
Link copied to clipboard
common
val name: String
The name of the track.
popularity
Link copied to clipboard
common
val popularity: Int
The popularity of the track.
previewUrl
Link copied to clipboard
common
val previewUrl: String? = null
A link to a 30 second preview (MP3 format) of the track.
track
Link copied to clipboard
common
val track: Boolean? = null
Whether this episode is also a track.
trackNumber
Link copied to clipboard
common
val trackNumber: Int
The number of the track.
type
Link copied to clipboard
common
open override val type: String
The object type: “episode”.
uri
Link copied to clipboard
common
open override val uri: PlayableUri
The URI associated with the object

Sources

(source)
Link copied to clipboard