commonMain.com.adamratzman.spotify.models.Library.kt Maven / Gradle / Ivy
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2022; Original author: Adam Ratzman */
package com.adamratzman.spotify.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Represents an episode saved in a user's library
*
* @param addedAt The date and time the album was saved.
* @param episode Information about the episode.
*/
@Serializable
public data class SavedEpisode(
@SerialName("added_at") val addedAt: String,
val episode: Episode
)
/**
* Represents a show saved in a user's library
*
* @param addedAt The date and time the album was saved.
* @param show Information about the show.
*/
@Serializable
public data class SavedShow(
@SerialName("added_at") val addedAt: String,
val show: SimpleShow
)
/**
* Represents an album saved in a user's library
*
* @param addedAt The date and time the album was saved.
* @param album Information about the album.
*/
@Serializable
public data class SavedAlbum(
@SerialName("added_at") val addedAt: String,
val album: Album
)
/**
* Represents a track saved in a user's library
*
* @param addedAt The date and time the track was saved.
* @param track The track object.
*/
@Serializable
public data class SavedTrack(
@SerialName("added_at") val addedAt: String,
val track: Track
)