mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Removed parameter checks
This commit is contained in:
parent
f182b5ea99
commit
92e66ed4c3
@ -113,8 +113,6 @@ namespace SpotifyAPI.Web
|
||||
/// <returns></returns>
|
||||
public FullAlbum GetAlbum(String id, String market = "")
|
||||
{
|
||||
if (String.IsNullOrEmpty(market))
|
||||
return DownloadData<FullAlbum>(_builder.SearchItems(id));
|
||||
return DownloadData<FullAlbum>(_builder.SearchItems(id, market));
|
||||
}
|
||||
|
||||
@ -126,8 +124,6 @@ namespace SpotifyAPI.Web
|
||||
/// <returns></returns>
|
||||
public Task<FullAlbum> GetAlbumAsync(String id, String market = "")
|
||||
{
|
||||
if (String.IsNullOrEmpty(market))
|
||||
return DownloadDataAsync<FullAlbum>(_builder.SearchItems(id));
|
||||
return DownloadDataAsync<FullAlbum>(_builder.SearchItems(id, market));
|
||||
}
|
||||
|
||||
@ -139,8 +135,6 @@ namespace SpotifyAPI.Web
|
||||
/// <returns></returns>
|
||||
public SeveralAlbums GetSeveralAlbums(List<String> ids, String market = "")
|
||||
{
|
||||
if (String.IsNullOrEmpty(market))
|
||||
return DownloadData<SeveralAlbums>(_builder.SearchItems(ids));
|
||||
return DownloadData<SeveralAlbums>(_builder.SearchItems(ids, market));
|
||||
}
|
||||
|
||||
@ -152,8 +146,6 @@ namespace SpotifyAPI.Web
|
||||
/// <returns></returns>
|
||||
public Task<SeveralAlbums> GetSeveralAlbumsAsync(List<String> ids, String market = "")
|
||||
{
|
||||
if (String.IsNullOrEmpty(market))
|
||||
return DownloadDataAsync<SeveralAlbums>(_builder.SearchItems(ids));
|
||||
return DownloadDataAsync<SeveralAlbums>(_builder.SearchItems(ids, market));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user