Package-level declarations

Types

Link copied to clipboard
@Serializable
data class Actions(val disallows: Disallows? = null, val interruptingPlayback: Boolean? = null, val pausing: Boolean? = null, val resuming: Boolean? = null, val seeking: Boolean? = null, val skippingNext: Boolean? = null, val skippingPrev: Boolean? = null, val togglingRepeatContext: Boolean? = null, val togglingShuffle: Boolean? = null, val togglingRepeatTrack: Boolean? = null, val transferringPlayback: Boolean? = null)
Link copied to clipboard
@Serializable
data class AvailableDevices(val devices: List<Device>)
Link copied to clipboard
@Serializable
data class Context(val type: String? = null, val href: String? = null, val externalUrls: ExternalUrls? = null, val uri: String? = null)
Link copied to clipboard
@Serializable
data class CurrentlyPlayingTrack(val device: Device? = null, val repeatState: String? = null, val shuffleState: Boolean? = null, val context: Context? = null, val timestamp: Long? = null, val progressMs: Int? = null, val isPlaying: Boolean? = null, val item: PlaybackItem? = null, val currentlyPlayingType: String? = null, val actions: Actions? = null)
Link copied to clipboard
@Serializable
data class Device(val id: String? = null, val isActive: Boolean? = null, val isPrivateSession: Boolean? = null, val isRestricted: Boolean? = null, val name: String? = null, val type: String? = null, val volumePercent: Int? = null, val supportsVolume: Boolean? = null)
Link copied to clipboard
data class DeviceObject(val id: String?, val isActive: Boolean, val isPrivateSession: Boolean, val isRestricted: Boolean, val name: String, val type: String, val volumePercent: Int?, val supportsVolume: Boolean)
Link copied to clipboard
@Serializable
data class Disallows(val interruptingPlayback: Boolean? = null, val pausing: Boolean? = null, val resuming: Boolean? = null, val seeking: Boolean? = null, val skippingNext: Boolean? = null, val skippingPrev: Boolean? = null, val togglingRepeatContext: Boolean? = null, val togglingShuffle: Boolean? = null, val togglingRepeatTrack: Boolean? = null, val transferringPlayback: Boolean? = null)
Link copied to clipboard
@Serializable(with = PlaybackItemSerializer::class)
interface PlaybackItem
Link copied to clipboard
object PlaybackItemSerializer : JsonContentPolymorphicSerializer<PlaybackItem>
Link copied to clipboard
@Serializable
data class PlaybackState(val device: Device? = null, val repeatState: String? = null, val shuffleState: Boolean? = null, val smartShuffle: Boolean? = null, val context: Context? = null, val timestamp: Long? = null, val progressMs: Int? = null, val isPlaying: Boolean? = null, val item: PlaybackItem? = null, val currentlyPlayingType: String? = null, val actions: Actions? = null)
Link copied to clipboard
@Serializable
data class PlayHistoryObject(val track: Track? = null, val playedAt: String? = null, val context: Context? = null)
Link copied to clipboard
@Serializable
data class RecentlyPlayedTracks(val href: String? = null, val limit: Int? = null, val next: String? = null, val cursors: Cursors? = null, val total: Int? = null, val items: List<PlayHistoryObject> = listOf())
Link copied to clipboard
data class UnknownPlaybackItem(val raw: JsonObject) : PlaybackItem
Link copied to clipboard
@Serializable
data class UsersQueue(val currentlyPlaying: PlaybackItem, val queue: List<PlaybackItem>)