PlayHistory

@Serializable
data class PlayHistory(val track: Track, val playedAt: String, val context: SpotifyContext? = null)(source)

Information about a previously-played track

Parameters

track

The track the user listened to.

playedAt

The date and time the track was played.

context

The context the track was played from.

Constructors

Link copied to clipboard
constructor(track: Track, playedAt: String, context: SpotifyContext? = null)

Properties

Link copied to clipboard
val context: SpotifyContext? = null
Link copied to clipboard
@SerialName(value = "played_at")
val playedAt: String
Link copied to clipboard