Package-level declarations

This is an internal package which contains common data classes for the Spotify API responses.

Types

Link copied to clipboard
@Serializable
internal data class AlbumInfo(val albumGroup: String? = null, val albumType: String, val artists: List<ArtistInfo>, val availableMarkets: List<String>? = null, val externalUrls: ExternalUrls, val href: String, val id: String, val images: List<ImageInfo>, val name: String, val releaseDate: String, val releaseDatePrecision: String, val restrictions: RestrictionInfo? = null, val totalTracks: Int, val type: String, val uri: String, val genres: List<String>? = null, val label: String? = null)
Link copied to clipboard
@Serializable
internal data class AlbumResponse(val href: String, val limit: Int, val offset: Int, val total: Int, val previous: String? = null, val next: String? = null, val items: List<AlbumInfo>)
Link copied to clipboard
@Serializable
internal data class ArtistInfo(val externalUrls: ExternalUrls, val followers: FollowersInfo? = null, val genres: List<String>? = null, val href: String, val id: String, val images: List<ImageInfo>? = null, val name: String, val popularity: Int? = null, val type: String, val uri: String)
Link copied to clipboard
@Serializable
internal data class ExternalIds(val isrc: String)
Link copied to clipboard
@Serializable
internal data class ExternalUrls(val spotify: String)
Link copied to clipboard
@Serializable
internal data class ImageInfo(val height: Int?, val width: Int?, val url: String?)
Link copied to clipboard
@Serializable
internal data class PlaylistInfo(val collaborative: Boolean, val description: String?, val externalUrls: ExternalUrls, val href: String, val id: String, val images: List<ImageInfo>, val name: String, val owner: PlaylistOwner, val primaryColor: String? = null, val public: Boolean? = null, val snapshotId: String, val tracks: PlaylistTracks, val type: String, val uri: String)
Link copied to clipboard
@Serializable
internal data class PlaylistOwner(val displayName: String, val externalUrls: ExternalUrls, val href: String, val id: String, val type: String, val uri: String)
Link copied to clipboard
@Serializable
internal data class PlaylistTracks(val href: String, val total: Int)
Link copied to clipboard
@Serializable
internal data class TrackInfo(val albumInfo: AlbumInfo, val artistsInfo: List<ArtistInfo>, val availableMarkets: List<String>? = null, val discNumber: Int, val discDuration: Long, val episode: Boolean? = null, val explicit: Boolean, val externalIds: ExternalIds, val externalUrls: ExternalUrls, val href: String, val id: String, val isPlayable: Boolean? = null, val isLocal: Boolean, val name: String, val popularity: Int, val restrictions: RestrictionInfo? = null, val previewUrl: String? = null, val track: Boolean? = null, val trackNumber: Int, val type: String, val uri: String, val linkedFrom: AdditionalTrackInfo? = null)