2020-05-01 19:05:28 +01:00
|
|
|
using System.Collections.Generic;
|
2020-05-02 21:48:21 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Converters;
|
2020-05-01 19:05:28 +01:00
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-05-07 17:03:20 +01:00
|
|
|
public class FullTrack : IPlayableItem
|
2020-05-01 19:05:28 +01:00
|
|
|
{
|
2020-05-25 17:00:38 +01:00
|
|
|
public SimpleAlbum Album { get; set; } = default!;
|
|
|
|
public List<SimpleArtist> Artists { get; set; } = default!;
|
|
|
|
public List<string> AvailableMarkets { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public int DiscNumber { get; set; }
|
|
|
|
public int DurationMs { get; set; }
|
|
|
|
public bool Explicit { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public Dictionary<string, string> ExternalIds { get; set; } = default!;
|
|
|
|
public Dictionary<string, string> ExternalUrls { get; set; } = default!;
|
|
|
|
public string Href { get; set; } = default!;
|
|
|
|
public string Id { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public bool IsPlayable { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public LinkedTrack LinkedFrom { get; set; } = default!;
|
|
|
|
public Dictionary<string, string> Restrictions { get; set; } = default!;
|
|
|
|
public string Name { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public int Popularity { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public string PreviewUrl { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public int TrackNumber { get; set; }
|
2020-05-02 21:48:21 +01:00
|
|
|
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
2020-05-08 09:25:33 +01:00
|
|
|
public ItemType Type { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public string Uri { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public bool IsLocal { get; set; }
|
2020-05-01 19:05:28 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|