de.sonallux.spotify.api.models.SimplifiedTrack Maven / Gradle / Ivy
Show all versions of spotify-web-api-java Show documentation
package de.sonallux.spotify.api.models;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.*;
/**
* SimplifiedTrackObject
*/
@Getter
@Setter
@NoArgsConstructor
@JsonTypeInfo(use = JsonTypeInfo.Id.NONE) // Disable deserialization based on @JsonTypeInfo
public class SimplifiedTrack extends BaseObject {
/**
* The artists who performed the track. Each artist object includes a link in href
to more detailed information about the artist.
*/
public java.util.List artists;
/**
* A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
*/
public java.util.List availableMarkets;
/**
* The disc number (usually 1
unless the album consists of more than one disc).
*/
public int discNumber;
/**
* The track length in milliseconds.
*/
public int durationMs;
/**
* Whether or not the track has explicit lyrics ( true
= yes it does; false
= no it does not OR unknown).
*/
public boolean explicit;
/**
* External URLs for this track.
*/
public ExternalUrl externalUrls;
/**
* Whether or not the track is from a local file.
*/
public boolean isLocal;
/**
* Part of the response when Track Relinking is applied. If true
, the track is playable in the given market. Otherwise false
.
*/
public boolean isPlayable;
/**
* Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists. The requested track has been replaced with a different track. The track in the linked_from
object contains information about the originally requested track.
*/
public LinkedTrack linkedFrom;
/**
* The name of the track.
*/
public String name;
/**
* A URL to a 30 second preview (MP3 format) of the track.
*/
public String previewUrl;
/**
* Included in the response when a content restriction is applied.
*/
public TrackRestriction restrictions;
/**
* The number of the track. If an album has several discs, the track number is the number on the specified disc.
*/
public int trackNumber;
}