Stubbed out some of ArtistApi

This commit is contained in:
Rikki Tooley 2013-06-14 13:25:02 +01:00
parent 03fa6f74e9
commit cd695b5216
5 changed files with 75 additions and 2 deletions

View File

@ -47,8 +47,8 @@ Task<ListResponse<Shout>> GetShoutsForAlbumWithMbidAsync(string mbid,
#region album.getTags
Task<ListResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, bool autocorrect = false);
Task<ListResponse<Tag>> GetUserTagsForAlbumWithMbidAsync(string mbid, bool autocorrect = false);
Task<ListResponse<Tag>> GetUserTagsForAlbumAsync(string artist, string album, string username, bool autocorrect = false);
Task<ListResponse<Tag>> GetUserTagsForAlbumWithMbidAsync(string mbid, string username, bool autocorrect = false);
#endregion

View File

@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IF.Lastfm.Core.Api.Helpers;
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public interface IArtistApi
{
IAuth Auth { get; }
#region artist.getInfo
Task<LastResponse<Artist>> GetArtistInfoAsync(string artist, string bioLang = LastFm.DefaultLanguageCode,
bool autocorrect = false);
Task<LastResponse<Artist>> GetArtistInfoWithMbidAsync(string mbid, string bioLang = LastFm.DefaultLanguageCode,
bool autocorrect = false);
#endregion
#region artist.getTopAlbums
Task<ListResponse<Album>> GetTopAlbumsForArtistAsync(string artist,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength);
Task<ListResponse<Album>> GetTopAlbumsForArtistWithMbidAsync(string mbid,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength);
#endregion
#region artist.getTags
Task<ListResponse<Tag>> GetUserTagsForArtistAsync(string artist,
string username,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength);
Task<ListResponse<Tag>> GetUserTagsForArtistWithMbidAsync(string mbid,
string username,
bool autocorrect = false,
int page = 1,
int itemsPerPage = LastFm.DefaultPageLength);
#endregion
#region artist.getTopTags
Task<ListResponse<Tag>> GetTopTagsForArtistAsync(string artist, bool autocorrect = false);
Task<ListResponse<Tag>> GetTopTagsForArtistWithMbidAsync(string mbid, bool autocorrect = false);
#endregion
}
}

View File

@ -46,6 +46,7 @@
<Compile Include="Api\Helpers\LastResponse.cs" />
<Compile Include="Api\Helpers\ListResponse.cs" />
<Compile Include="Api\IAlbumApi.cs" />
<Compile Include="Api\IArtistApi.cs" />
<Compile Include="Api\IUserApi.cs" />
<Compile Include="Api\Enums\LastStatsTimeSpan.cs" />
<Compile Include="Api\Helpers\LastResponse{T}.cs" />
@ -57,6 +58,7 @@
<Compile Include="Api\Enums\LastFmApiError.cs" />
<Compile Include="Api\Helpers\LastFmApiException.cs" />
<Compile Include="Objects\Album.cs" />
<Compile Include="Objects\Artist.cs" />
<Compile Include="Objects\BuyLink.cs" />
<Compile Include="Objects\CountryCode.cs" />
<Compile Include="Objects\Shout.cs" />

View File

@ -19,6 +19,7 @@ public class LastFm : ILastFm
private const string ResponseFormat = "json";
public const string DefaultLanguageCode = "en";
public const int DefaultPageLength = 20;
#endregion

View File

@ -0,0 +1,6 @@
namespace IF.Lastfm.Core.Objects
{
public class Artist
{
}
}