IF.Lastfm/IF.Lastfm.Core/Api/ArtistApi.cs

98 lines
2.7 KiB
C#
Raw Normal View History

2013-07-01 23:18:06 +01:00
using System;
using System.Threading.Tasks;
using IF.Lastfm.Core.Api.Commands.ArtistApi;
using IF.Lastfm.Core.Api.Helpers;
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public class ArtistApi : IArtistApi
{
public IAuth Auth { get; private set; }
public ArtistApi(Auth auth)
{
Auth = auth;
}
#region artist.getInfo
public async Task<LastResponse<Artist>> GetArtistInfoAsync(string artist,
string bioLang = LastFm.DefaultLanguageCode,
bool autocorrect = false)
{
var command = new GetArtistInfoCommand(Auth, artist)
{
BioLanguage = bioLang,
Autocorrect = autocorrect
};
return await command.ExecuteAsync();
}
public async Task<LastResponse<Artist>> GetArtistInfoWithMbidAsync(string mbid,
string bioLang = LastFm.DefaultLanguageCode,
bool autocorrect = false)
{
throw new NotImplementedException();
}
#endregion
#region artist.getTopAlbums
public async Task<PageResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength)
{
throw new NotImplementedException();
}
public async Task<PageResponse<Album>> GetTopAlbumsForArtistWithMbidAsync(string mbid,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength)
{
throw new NotImplementedException();
}
#endregion
#region artist.getTags
public async Task<PageResponse<Tag>> GetUserTagsForArtistAsync(string artist,
string username,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength)
{
throw new NotImplementedException();
}
public async Task<PageResponse<Tag>> GetUserTagsForArtistWithMbidAsync(string mbid,
string username,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength)
{
throw new NotImplementedException();
}
#endregion
#region artist.getTopTags
public async Task<PageResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false)
{
throw new NotImplementedException();
}
public async Task<PageResponse<Tag>> GetTopTagsForArtistWithMbidAsync(string mbid, bool autocorrect = false)
{
throw new NotImplementedException();
}
#endregion
}
}