mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Stubbed out some of ArtistApi
This commit is contained in:
parent
03fa6f74e9
commit
cd695b5216
@ -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
|
||||
|
||||
|
64
IF.Lastfm.Core/Api/IArtistApi.cs
Normal file
64
IF.Lastfm.Core/Api/IArtistApi.cs
Normal 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
|
||||
|
||||
}
|
||||
}
|
@ -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" />
|
||||
|
@ -19,6 +19,7 @@ public class LastFm : ILastFm
|
||||
|
||||
private const string ResponseFormat = "json";
|
||||
|
||||
public const string DefaultLanguageCode = "en";
|
||||
public const int DefaultPageLength = 20;
|
||||
|
||||
#endregion
|
||||
|
6
IF.Lastfm.Core/Objects/Artist.cs
Normal file
6
IF.Lastfm.Core/Objects/Artist.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace IF.Lastfm.Core.Objects
|
||||
{
|
||||
public class Artist
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user