diff --git a/SpotifyAPI/SpotifyWebAPI/Models/GeneralModels.cs b/SpotifyAPI/SpotifyWebAPI/Models/GeneralModels.cs index cc9db476..21472499 100644 --- a/SpotifyAPI/SpotifyWebAPI/Models/GeneralModels.cs +++ b/SpotifyAPI/SpotifyWebAPI/Models/GeneralModels.cs @@ -113,4 +113,12 @@ namespace SpotifyAPI.SpotifyWebAPI.Models [JsonProperty("uri")] public String Uri { get; set; } } + + public class SavedTrack + { + [JsonProperty("added_at")] + public DateTime AddedAt { get; set; } + [JsonProperty("track")] + public FullTrack Track { get; set; } + } } diff --git a/SpotifyAPI/SpotifyWebAPI/SpotifyWebAPIClass.cs b/SpotifyAPI/SpotifyWebAPI/SpotifyWebAPIClass.cs index 118e33bc..c0d7f43f 100644 --- a/SpotifyAPI/SpotifyWebAPI/SpotifyWebAPIClass.cs +++ b/SpotifyAPI/SpotifyWebAPI/SpotifyWebAPIClass.cs @@ -84,12 +84,12 @@ namespace SpotifyAPI.SpotifyWebAPI JArray array = new JArray(ids.ToArray()); return UploadData("https://api.spotify.com/v1/me/tracks/", array.ToString(Formatting.None), "PUT"); } - public Paging GetSavedTracks(String market = "") + public Paging GetSavedTracks(String market = "") { if(market == "") - return DownloadData>("https://api.spotify.com/v1/me/tracks"); + return DownloadData>("https://api.spotify.com/v1/me/tracks"); else - return DownloadData>("https://api.spotify.com/v1/me/tracks?market=" + market); + return DownloadData>("https://api.spotify.com/v1/me/tracks?market=" + market); } public ErrorResponse RemoveSavedTracks(List ids) {