Added various fields, fixes #289

This commit is contained in:
Jonas Dellinger 2018-09-21 14:51:30 +02:00
parent 70a57579cf
commit 6056fdf453
4 changed files with 18 additions and 0 deletions

View File

@ -54,6 +54,9 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("tracks")] [JsonProperty("tracks")]
public Paging<SimpleTrack> Tracks { get; set; } public Paging<SimpleTrack> Tracks { get; set; }
[JsonProperty("restrictions")]
public Dictionary<string, string> Restrictions { get; set; }
[JsonProperty("type")] [JsonProperty("type")]
public string Type { get; set; } public string Type { get; set; }

View File

@ -48,6 +48,9 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("track_number")] [JsonProperty("track_number")]
public int TrackNumber { get; set; } public int TrackNumber { get; set; }
[JsonProperty("restrictions")]
public Dictionary<string, string> Restrictions { get; set; }
[JsonProperty("type")] [JsonProperty("type")]
public string Type { get; set; } public string Type { get; set; }

View File

@ -6,9 +6,15 @@ namespace SpotifyAPI.Web.Models
{ {
public class SimpleAlbum : BasicModel public class SimpleAlbum : BasicModel
{ {
[JsonProperty("album_group")]
public string AlbumGroup { get; set; }
[JsonProperty("album_type")] [JsonProperty("album_type")]
public string AlbumType { get; set; } public string AlbumType { get; set; }
[JsonProperty("artists")]
public List<SimpleArtist> Artists { get; set; }
[JsonProperty("available_markets")] [JsonProperty("available_markets")]
public List<string> AvailableMarkets { get; set; } public List<string> AvailableMarkets { get; set; }
@ -33,6 +39,9 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("release_date_precision")] [JsonProperty("release_date_precision")]
public string ReleaseDatePrecision { get; set; } public string ReleaseDatePrecision { get; set; }
[JsonProperty("restrictions")]
public Dictionary<string, string> Restrictions { get; set; }
[JsonProperty("type")] [JsonProperty("type")]
public string Type { get; set; } public string Type { get; set; }

View File

@ -39,6 +39,9 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("track_number")] [JsonProperty("track_number")]
public int TrackNumber { get; set; } public int TrackNumber { get; set; }
[JsonProperty("restrictions")]
public Dictionary<string, string> Restrictions { get; set; }
[JsonProperty("type")] [JsonProperty("type")]
public string Type { get; set; } public string Type { get; set; }