2013-07-28 00:07:15 +01:00
|
|
|
|
using System.Threading.Tasks;
|
2013-06-14 13:11:42 +01:00
|
|
|
|
using IF.Lastfm.Core.Api.Helpers;
|
2013-06-11 17:40:22 +01:00
|
|
|
|
using IF.Lastfm.Core.Objects;
|
|
|
|
|
|
|
|
|
|
namespace IF.Lastfm.Core.Api
|
|
|
|
|
{
|
|
|
|
|
public interface IAlbumApi
|
|
|
|
|
{
|
|
|
|
|
IAuth Auth { get; }
|
|
|
|
|
|
2013-06-14 13:11:42 +01:00
|
|
|
|
Task<LastResponse<Album>> GetAlbumInfoAsync(string artist, string album, bool autocorrect = false);
|
|
|
|
|
|
2013-06-15 16:17:37 +01:00
|
|
|
|
Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist,
|
2013-06-14 13:11:42 +01:00
|
|
|
|
string album,
|
|
|
|
|
CountryCode country,
|
|
|
|
|
bool autocorrect = false);
|
2013-07-28 00:07:15 +01:00
|
|
|
|
|
|
|
|
|
Task<PageResponse<Tag>> GetUserTagsForAlbumAsync(string artist,
|
|
|
|
|
string album,
|
|
|
|
|
string username,
|
|
|
|
|
bool autocorrect = false);
|
2013-06-14 13:11:42 +01:00
|
|
|
|
|
2013-07-28 00:07:15 +01:00
|
|
|
|
Task<PageResponse<Tag>> GetTopTagsForAlbumAsync(string artist,
|
2013-06-14 13:11:42 +01:00
|
|
|
|
string album,
|
2013-07-28 00:07:15 +01:00
|
|
|
|
bool autocorrect = false);
|
|
|
|
|
|
|
|
|
|
Task<PageResponse<Album>> SearchForAlbumAsync(string album,
|
2013-06-14 13:11:42 +01:00
|
|
|
|
int page = 1,
|
|
|
|
|
int itemsPerPage = LastFm.DefaultPageLength);
|
|
|
|
|
|
2013-07-28 00:07:15 +01:00
|
|
|
|
Task<PageResponse<Shout>> GetShoutsAsync(string albumname,
|
|
|
|
|
string artistname,
|
|
|
|
|
bool autocorrect = false,
|
|
|
|
|
int page = 1,
|
|
|
|
|
int count = LastFm.DefaultPageLength);
|
2013-07-30 00:36:55 +01:00
|
|
|
|
|
|
|
|
|
//Task<LastResponse> AddShoutAsync(string albumname, string artistname, string message);
|
2013-06-11 17:40:22 +01:00
|
|
|
|
}
|
|
|
|
|
}
|