Skip to content

Commit d36a3f3

Browse files
author
Johnny Dellinger @PC
committed
Addition to last commit + Added snapshot_id to SimplePlaylist
1 parent 382fdef commit d36a3f3

3 files changed

Lines changed: 25 additions & 4 deletions

File tree

‎SpotifyAPI/SpotifyAPI.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
<Compile Include="Web\Models\Category.cs" />
7878
<Compile Include="Web\Models\CategoryList.cs" />
7979
<Compile Include="Web\Models\CategoryPlaylist.cs" />
80+
<Compile Include="Web\Models\CursorPaging.cs" />
8081
<Compile Include="Web\Models\FeaturedPlaylists.cs" />
82+
<Compile Include="Web\Models\FollowedArtists.cs" />
8183
<Compile Include="Web\Models\FullAlbum.cs" />
8284
<Compile Include="Web\Models\FullArtist.cs" />
8385
<Compile Include="Web\Models\FullTrack.cs" />

‎SpotifyAPI/Web/Models/GeneralModels.cs‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ public bool ShouldSerializePositions()
7272
return (Positions.Count > 0);
7373
}
7474
}
75-
public class SeveralTracks
75+
public class SeveralTracks : BasicModel
7676
{
7777
[JsonProperty("tracks")]
7878
public List<FullTrack> Tracks { get; set; }
7979
}
80-
public class SeveralArtists
80+
public class SeveralArtists : BasicModel
8181
{
8282
[JsonProperty("artists")]
8383
public List<FullArtist> Artists { get; set; }
8484
}
85-
public class SeveralAlbums
85+
public class SeveralAlbums : BasicModel
8686
{
8787
[JsonProperty("albums")]
8888
public List<FullAlbum> Albums { get; set; }
@@ -116,4 +116,10 @@ public class SavedTrack
116116
[JsonProperty("track")]
117117
public FullTrack Track { get; set; }
118118
}
119+
120+
public class Cursor
121+
{
122+
[JsonProperty("after")]
123+
public String After { get; set; }
124+
}
119125
}

‎SpotifyAPI/Web/Models/SimplePlaylist.cs‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,38 @@ public class SimplePlaylist : BasicModel
88
{
99
[JsonProperty("collaborative")]
1010
public Boolean Collaborative { get; set; }
11+
1112
[JsonProperty("external_urls")]
1213
public Dictionary<string, string> ExternalUrls { get; set; }
14+
1315
[JsonProperty("href")]
1416
public String Href { get; set; }
17+
1518
[JsonProperty("id")]
1619
public String Id { get; set; }
20+
1721
[JsonProperty("images")]
1822
public List<Image> Images { get; set; }
23+
1924
[JsonProperty("name")]
2025
public String Name { get; set; }
26+
2127
[JsonProperty("owner")]
2228
public PublicProfile Owner { get; set; }
29+
2330
[JsonProperty("public")]
2431
public Boolean Public { get; set; }
32+
33+
[JsonProperty("snapshot_id")]
34+
public String SnapshotId { get; set; }
35+
2536
[JsonProperty("tracks")]
2637
public PlaylistTrackCollection Tracks { get; set; }
38+
2739
[JsonProperty("type")]
2840
public String Type { get; set; }
41+
2942
[JsonProperty("uri")]
3043
public String Uri { get; set; }
3144
}
32-
}
45+
}

0 commit comments

Comments
 (0)