Skip to content

Commit 6056fdf

Browse files
author
Jonas Dellinger
committed
Added various fields, fixes JohnnyCrazy#289
1 parent 70a5757 commit 6056fdf

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎SpotifyAPI.Web/Models/FullAlbum.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public class FullAlbum : BasicModel
5454
[JsonProperty("tracks")]
5555
public Paging<SimpleTrack> Tracks { get; set; }
5656

57+
[JsonProperty("restrictions")]
58+
public Dictionary<string, string> Restrictions { get; set; }
59+
5760
[JsonProperty("type")]
5861
public string Type { get; set; }
5962

‎SpotifyAPI.Web/Models/FullTrack.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public class FullTrack : BasicModel
4848
[JsonProperty("track_number")]
4949
public int TrackNumber { get; set; }
5050

51+
[JsonProperty("restrictions")]
52+
public Dictionary<string, string> Restrictions { get; set; }
53+
5154
[JsonProperty("type")]
5255
public string Type { get; set; }
5356

‎SpotifyAPI.Web/Models/SimpleAlbum.cs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ namespace SpotifyAPI.Web.Models
66
{
77
public class SimpleAlbum : BasicModel
88
{
9+
[JsonProperty("album_group")]
10+
public string AlbumGroup { get; set; }
11+
912
[JsonProperty("album_type")]
1013
public string AlbumType { get; set; }
1114

15+
[JsonProperty("artists")]
16+
public List<SimpleArtist> Artists { get; set; }
17+
1218
[JsonProperty("available_markets")]
1319
public List<string> AvailableMarkets { get; set; }
1420

@@ -33,6 +39,9 @@ public class SimpleAlbum : BasicModel
3339
[JsonProperty("release_date_precision")]
3440
public string ReleaseDatePrecision { get; set; }
3541

42+
[JsonProperty("restrictions")]
43+
public Dictionary<string, string> Restrictions { get; set; }
44+
3645
[JsonProperty("type")]
3746
public string Type { get; set; }
3847

‎SpotifyAPI.Web/Models/SimpleTrack.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public class SimpleTrack : BasicModel
3939
[JsonProperty("track_number")]
4040
public int TrackNumber { get; set; }
4141

42+
[JsonProperty("restrictions")]
43+
public Dictionary<string, string> Restrictions { get; set; }
44+
4245
[JsonProperty("type")]
4346
public string Type { get; set; }
4447

0 commit comments

Comments
 (0)