2015-10-16 23:44:35 +01:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
2014-07-20 21:42:46 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2015-07-07 17:11:11 +01:00
|
|
|
|
namespace SpotifyAPI.Web.Models
|
2014-07-20 21:42:46 +01:00
|
|
|
|
{
|
|
|
|
|
public class FullTrack : BasicModel
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("album")]
|
|
|
|
|
public SimpleAlbum Album { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-12-04 17:18:11 +00:00
|
|
|
|
[JsonProperty("artists")]
|
|
|
|
|
public List<SimpleArtist> Artists { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("available_markets")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public List<string> AvailableMarkets { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("disc_number")]
|
|
|
|
|
public int DiscNumber { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("duration_ms")]
|
|
|
|
|
public int DurationMs { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("explicit")]
|
|
|
|
|
public Boolean Explicit { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("external_ids")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public Dictionary<string, string> ExternalIds { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("external_urls")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public Dictionary<string, string> ExternUrls { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("href")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Href { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("id")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Id { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("name")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Name { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("popularity")]
|
|
|
|
|
public int Popularity { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("preview_url")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string PreviewUrl { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("track_number")]
|
|
|
|
|
public int TrackNumber { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2018-09-21 13:51:30 +01:00
|
|
|
|
[JsonProperty("restrictions")]
|
|
|
|
|
public Dictionary<string, string> Restrictions { get; set; }
|
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("type")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Type { get; set; }
|
2015-07-26 13:03:53 +01:00
|
|
|
|
|
2014-07-20 21:42:46 +01:00
|
|
|
|
[JsonProperty("uri")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Uri { get; set; }
|
2015-02-12 23:23:07 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-07-26 13:03:53 +01:00
|
|
|
|
/// Only filled when the "market"-parameter was supplied!
|
2015-02-12 23:23:07 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty("is_playable")]
|
|
|
|
|
public Boolean? IsPlayable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-07-26 13:03:53 +01:00
|
|
|
|
/// Only filled when the "market"-parameter was supplied!
|
2015-02-12 23:23:07 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty("linked_from")]
|
|
|
|
|
public LinkedFrom LinkedFrom { get; set; }
|
2014-07-20 21:42:46 +01:00
|
|
|
|
}
|
2015-07-26 13:03:53 +01:00
|
|
|
|
}
|