Play

class Play(id: String)

Play object is an encapsulation of Station and AudioFile and represents one play of the given song in the given station.

Constructors

Play
Link copied to clipboard
fun Play(id: String)

Types

LikeState
Link copied to clipboard
enum LikeState : Enum<Play.LikeState>

This merges the AudioFile.isLiked and AudioFile.isDisliked boolean values into a single LIKED, DISLIKED, or NONE value.

Functions

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

Properties

audioFile
Link copied to clipboard
@SerializedName(value = "audio_file")
lateinit var audioFile: AudioFile

AudioFile object containing information pertaining to the track

elapsedSeconds
Link copied to clipboard
@SerializedName(value = "elapsed_seconds")
var elapsedSeconds: Float = 0.0f

Elapsed seconds if this is a simulcast station

id
Link copied to clipboard
@SerializedName(value = "id")
var id: String

Id of the Play

likeState
Link copied to clipboard
var likeState: Play.LikeState
station
Link copied to clipboard
@SerializedName(value = "station")
var station: Station? = null

Station this Play