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\Category.cs" />
<Compile Include="Web\Models\CategoryList.cs" /> <Compile Include="Web\Models\CategoryList.cs" />
<Compile Include="Web\Models\CategoryPlaylist.cs" /> <Compile Include="Web\Models\CategoryPlaylist.cs" />
<Compile Include="Web\Models\CursorPaging.cs" />
<Compile Include="Web\Models\FeaturedPlaylists.cs" /> <Compile Include="Web\Models\FeaturedPlaylists.cs" />
<Compile Include="Web\Models\FollowedArtists.cs" />
<Compile Include="Web\Models\FullAlbum.cs" /> <Compile Include="Web\Models\FullAlbum.cs" />
<Compile Include="Web\Models\FullArtist.cs" /> <Compile Include="Web\Models\FullArtist.cs" />
<Compile Include="Web\Models\FullTrack.cs" /> <Compile Include="Web\Models\FullTrack.cs" />

View File

@ -72,17 +72,17 @@ namespace SpotifyAPI.Web.Models
return (Positions.Count > 0); return (Positions.Count > 0);
} }
} }
public class SeveralTracks public class SeveralTracks : BasicModel
{ {
[JsonProperty("tracks")] [JsonProperty("tracks")]
public List<FullTrack> Tracks { get; set; } public List<FullTrack> Tracks { get; set; }
} }
public class SeveralArtists public class SeveralArtists : BasicModel
{ {
[JsonProperty("artists")] [JsonProperty("artists")]
public List<FullArtist> Artists { get; set; } public List<FullArtist> Artists { get; set; }
} }
public class SeveralAlbums public class SeveralAlbums : BasicModel
{ {
[JsonProperty("albums")] [JsonProperty("albums")]
public List<FullAlbum> Albums { get; set; } public List<FullAlbum> Albums { get; set; }
@ -116,4 +116,10 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("track")] [JsonProperty("track")]
public FullTrack Track { get; set; } 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")] [JsonProperty("collaborative")]
public Boolean Collaborative { get; set; } public Boolean Collaborative { get; set; }
[JsonProperty("external_urls")] [JsonProperty("external_urls")]
public Dictionary<string, string> ExternalUrls { get; set; } public Dictionary<string, string> ExternalUrls { get; set; }
[JsonProperty("href")] [JsonProperty("href")]
public String Href { get; set; } public String Href { get; set; }
[JsonProperty("id")] [JsonProperty("id")]
public String Id { get; set; } public String Id { get; set; }
[JsonProperty("images")] [JsonProperty("images")]
public List<Image> Images { get; set; } public List<Image> Images { get; set; }
[JsonProperty("name")] [JsonProperty("name")]
public String Name { get; set; } public String Name { get; set; }
[JsonProperty("owner")] [JsonProperty("owner")]
public PublicProfile Owner { get; set; } public PublicProfile Owner { get; set; }
[JsonProperty("public")] [JsonProperty("public")]
public Boolean Public { get; set; } public Boolean Public { get; set; }
[JsonProperty("snapshot_id")]
public String SnapshotId { get; set; }
[JsonProperty("tracks")] [JsonProperty("tracks")]
public PlaylistTrackCollection Tracks { get; set; } public PlaylistTrackCollection Tracks { get; set; }
[JsonProperty("type")] [JsonProperty("type")]
public String Type { get; set; } public String Type { get; set; }
[JsonProperty("uri")] [JsonProperty("uri")]
public String Uri { get; set; } public String Uri { get; set; }
} }