2020-05-02 12:04:26 +01:00
|
|
|
using System.Collections.Generic;
|
2020-05-02 21:48:21 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Converters;
|
2020-05-02 12:04:26 +01:00
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class SimpleTrack
|
|
|
|
{
|
2020-05-05 14:30:00 +01:00
|
|
|
public List<SimpleArtist> Artists { get; private set; }
|
|
|
|
public List<string> AvailableMarkets { get; private set; }
|
|
|
|
public int DiscNumber { get; private set; }
|
|
|
|
public int DurationMs { get; private set; }
|
|
|
|
public bool Explicit { get; private set; }
|
|
|
|
public Dictionary<string, string> ExternalUrls { get; private set; }
|
|
|
|
public string Href { get; private set; }
|
|
|
|
public string Id { get; private set; }
|
|
|
|
public bool IsPlayable { get; private set; }
|
|
|
|
public LinkedTrack LinkedFrom { get; private set; }
|
|
|
|
public string Name { get; private set; }
|
|
|
|
public string PreviewUrl { get; private set; }
|
|
|
|
public int TrackNumber { get; private set; }
|
2020-05-02 21:48:21 +01:00
|
|
|
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
2020-05-05 14:30:00 +01:00
|
|
|
public ItemType Type { get; private set; }
|
|
|
|
public string Uri { get; private set; }
|
2020-05-02 12:04:26 +01:00
|
|
|
}
|
|
|
|
}
|