PlayHistory

data class PlayHistory(track: SimpleTrack, playedAt: String, context: SpotifyContext?)

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

PlayHistory
Link copied to clipboard
common
fun PlayHistory(track: SimpleTrack, playedAt: String, context: SpotifyContext? = null)
The track the user listened to.

Functions

component1
Link copied to clipboard
common
operator fun component1(): SimpleTrack
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): SpotifyContext?
copy
Link copied to clipboard
common
fun copy(track: SimpleTrack, playedAt: String, context: SpotifyContext? = null): PlayHistory
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

context
Link copied to clipboard
common
val context: SpotifyContext? = null
The context the track was played from.
playedAt
Link copied to clipboard
common
val playedAt: String
The date and time the track was played.
track
Link copied to clipboard
common
val track: SimpleTrack
The track the user listened to.

Sources

(source)
Link copied to clipboard