From 6056fdf4531eda44e6cd086831abb522c6dd30b4 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Fri, 21 Sep 2018 14:51:30 +0200 Subject: [PATCH] Added various fields, fixes #289 --- SpotifyAPI.Web/Models/FullAlbum.cs | 3 +++ SpotifyAPI.Web/Models/FullTrack.cs | 3 +++ SpotifyAPI.Web/Models/SimpleAlbum.cs | 9 +++++++++ SpotifyAPI.Web/Models/SimpleTrack.cs | 3 +++ 4 files changed, 18 insertions(+) diff --git a/SpotifyAPI.Web/Models/FullAlbum.cs b/SpotifyAPI.Web/Models/FullAlbum.cs index 7ec612f4..47e0458c 100644 --- a/SpotifyAPI.Web/Models/FullAlbum.cs +++ b/SpotifyAPI.Web/Models/FullAlbum.cs @@ -54,6 +54,9 @@ namespace SpotifyAPI.Web.Models [JsonProperty("tracks")] public Paging Tracks { get; set; } + [JsonProperty("restrictions")] + public Dictionary Restrictions { get; set; } + [JsonProperty("type")] public string Type { get; set; } diff --git a/SpotifyAPI.Web/Models/FullTrack.cs b/SpotifyAPI.Web/Models/FullTrack.cs index bb5e5978..a08a002e 100644 --- a/SpotifyAPI.Web/Models/FullTrack.cs +++ b/SpotifyAPI.Web/Models/FullTrack.cs @@ -48,6 +48,9 @@ namespace SpotifyAPI.Web.Models [JsonProperty("track_number")] public int TrackNumber { get; set; } + [JsonProperty("restrictions")] + public Dictionary Restrictions { get; set; } + [JsonProperty("type")] public string Type { get; set; } diff --git a/SpotifyAPI.Web/Models/SimpleAlbum.cs b/SpotifyAPI.Web/Models/SimpleAlbum.cs index 67798775..6636a80d 100644 --- a/SpotifyAPI.Web/Models/SimpleAlbum.cs +++ b/SpotifyAPI.Web/Models/SimpleAlbum.cs @@ -6,9 +6,15 @@ namespace SpotifyAPI.Web.Models { public class SimpleAlbum : BasicModel { + [JsonProperty("album_group")] + public string AlbumGroup { get; set; } + [JsonProperty("album_type")] public string AlbumType { get; set; } + [JsonProperty("artists")] + public List Artists { get; set; } + [JsonProperty("available_markets")] public List AvailableMarkets { get; set; } @@ -33,6 +39,9 @@ namespace SpotifyAPI.Web.Models [JsonProperty("release_date_precision")] public string ReleaseDatePrecision { get; set; } + [JsonProperty("restrictions")] + public Dictionary Restrictions { get; set; } + [JsonProperty("type")] public string Type { get; set; } diff --git a/SpotifyAPI.Web/Models/SimpleTrack.cs b/SpotifyAPI.Web/Models/SimpleTrack.cs index e0f4666e..59b92103 100644 --- a/SpotifyAPI.Web/Models/SimpleTrack.cs +++ b/SpotifyAPI.Web/Models/SimpleTrack.cs @@ -39,6 +39,9 @@ namespace SpotifyAPI.Web.Models [JsonProperty("track_number")] public int TrackNumber { get; set; } + [JsonProperty("restrictions")] + public Dictionary Restrictions { get; set; } + [JsonProperty("type")] public string Type { get; set; }