mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Forgot to add SavedAlbum-Object...
This commit is contained in:
parent
8017a02a10
commit
8b67917682
@ -142,6 +142,15 @@ namespace SpotifyAPI.Web.Models
|
||||
public FullTrack Track { get; set; }
|
||||
}
|
||||
|
||||
public class SavedAlbum
|
||||
{
|
||||
[JsonProperty("added_at")]
|
||||
public DateTime AddedAt { get; set; }
|
||||
|
||||
[JsonProperty("album")]
|
||||
public SavedAlbum Album { get; set; }
|
||||
}
|
||||
|
||||
public class Cursor
|
||||
{
|
||||
[JsonProperty("after")]
|
||||
|
@ -989,11 +989,11 @@ namespace SpotifyAPI.Web
|
||||
/// <param name="market">An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</param>
|
||||
/// <returns></returns>
|
||||
/// <remarks>AUTH NEEDED</remarks>
|
||||
public Paging<SavedTrack> GetSavedAlbums(int limit = 20, int offset = 0, String market = "")
|
||||
public Paging<SavedAlbum> GetSavedAlbums(int limit = 20, int offset = 0, String market = "")
|
||||
{
|
||||
if (!UseAuth)
|
||||
throw new InvalidOperationException("Auth is required for GetSavedAlbums");
|
||||
return DownloadData<Paging<SavedTrack>>(_builder.GetSavedAlbums(limit, offset, market));
|
||||
return DownloadData<Paging<SavedAlbum>>(_builder.GetSavedAlbums(limit, offset, market));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -1004,11 +1004,11 @@ namespace SpotifyAPI.Web
|
||||
/// <param name="market">An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</param>
|
||||
/// <returns></returns>
|
||||
/// <remarks>AUTH NEEDED</remarks>
|
||||
public async Task<Paging<SavedTrack>> GetSavedAlbumsAsync(int limit = 20, int offset = 0, String market = "")
|
||||
public async Task<Paging<SavedAlbum>> GetSavedAlbumsAsync(int limit = 20, int offset = 0, String market = "")
|
||||
{
|
||||
if (!UseAuth)
|
||||
throw new InvalidOperationException("Auth is required for GetSavedAlbumsAsync");
|
||||
return await DownloadDataAsync<Paging<SavedTrack>>(_builder.GetSavedAlbums(limit, offset, market));
|
||||
return await DownloadDataAsync<Paging<SavedAlbum>>(_builder.GetSavedAlbums(limit, offset, market));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user