Addition to last commit + Added snapshot_id to SimplePlaylist

This commit is contained in:
Johnny Dellinger @PC 2015-07-26 14:00:17 +02:00
parent 382fdef3fa
commit d36a3f3fd9
3 changed files with 25 additions and 4 deletions

View File

@ -77,7 +77,9 @@
<Compile Include="Web\Models\Category.cs" />
<Compile Include="Web\Models\CategoryList.cs" />
<Compile Include="Web\Models\CategoryPlaylist.cs" />
<Compile Include="Web\Models\CursorPaging.cs" />
<Compile Include="Web\Models\FeaturedPlaylists.cs" />
<Compile Include="Web\Models\FollowedArtists.cs" />
<Compile Include="Web\Models\FullAlbum.cs" />
<Compile Include="Web\Models\FullArtist.cs" />
<Compile Include="Web\Models\FullTrack.cs" />

View File

@ -72,17 +72,17 @@ namespace SpotifyAPI.Web.Models
return (Positions.Count > 0);
}
}
public class SeveralTracks
public class SeveralTracks : BasicModel
{
[JsonProperty("tracks")]
public List<FullTrack> Tracks { get; set; }
}
public class SeveralArtists
public class SeveralArtists : BasicModel
{
[JsonProperty("artists")]
public List<FullArtist> Artists { get; set; }
}
public class SeveralAlbums
public class SeveralAlbums : BasicModel
{
[JsonProperty("albums")]
public List<FullAlbum> Albums { get; set; }
@ -116,4 +116,10 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("track")]
public FullTrack Track { get; set; }
}
public class Cursor
{
[JsonProperty("after")]
public String After { get; set; }
}
}

View File

@ -8,24 +8,37 @@ namespace SpotifyAPI.Web.Models
{
[JsonProperty("collaborative")]
public Boolean Collaborative { get; set; }
[JsonProperty("external_urls")]
public Dictionary<string, string> ExternalUrls { get; set; }
[JsonProperty("href")]
public String Href { get; set; }
[JsonProperty("id")]
public String Id { get; set; }
[JsonProperty("images")]
public List<Image> Images { get; set; }
[JsonProperty("name")]
public String Name { get; set; }
[JsonProperty("owner")]
public PublicProfile Owner { get; set; }
[JsonProperty("public")]
public Boolean Public { get; set; }
[JsonProperty("snapshot_id")]
public String SnapshotId { get; set; }
[JsonProperty("tracks")]
public PlaylistTrackCollection Tracks { get; set; }
[JsonProperty("type")]
public String Type { get; set; }
[JsonProperty("uri")]
public String Uri { get; set; }
}