All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.adamratzman.spotify.models.Misc.kt Maven / Gradle / Ivy

There is a newer version: 4.1.3
Show newest version
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
package com.adamratzman.spotify.models

import kotlinx.serialization.Serializable

/**
 * A Spotify image
 *
 * @param height The image height in pixels. If unknown: null or not returned.
 * @param url The source URL of the image.
 * @param width The image width in pixels. If unknown: null or not returned.
 */
@Serializable
public data class SpotifyImage(
    val height: Int? = null,
    val url: String,
    val width: Int? = null
)

/**
 * Contains an explanation of why a track is not available
 *
 * @param reason why the track is not available
 */
@Serializable
public data class Restrictions(val reason: String)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy