2013-06-14 16:19:26 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using IF.Lastfm.Core.Api.Helpers;
|
2013-07-07 16:16:54 +01:00
|
|
|
|
using IF.Lastfm.Core.Objects;
|
2013-06-14 16:19:26 +01:00
|
|
|
|
|
|
|
|
|
namespace IF.Lastfm.Core.Api
|
|
|
|
|
{
|
|
|
|
|
public interface ITrackApi
|
|
|
|
|
{
|
|
|
|
|
IAuth Auth { get; }
|
|
|
|
|
|
|
|
|
|
Task<LastResponse> ScrobbleAsync(Scrobble scrobble);
|
|
|
|
|
Task<LastResponse> ScrobbleAsync(IEnumerable<Scrobble> scrobble);
|
2013-07-07 16:16:54 +01:00
|
|
|
|
|
2013-07-24 07:59:07 +01:00
|
|
|
|
Task<PageResponse<Shout>> GetShoutsForTrackAsync(string trackname,
|
|
|
|
|
string artistname,
|
2013-07-28 00:07:15 +01:00
|
|
|
|
bool autocorrect = false,
|
2013-07-24 07:59:07 +01:00
|
|
|
|
int page = 0,
|
|
|
|
|
int count = LastFm.DefaultPageLength);
|
2013-07-07 16:16:54 +01:00
|
|
|
|
|
2013-07-23 15:42:10 +01:00
|
|
|
|
Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "");
|
2013-07-24 01:14:22 +01:00
|
|
|
|
|
|
|
|
|
Task<LastResponse> LoveTrackAsync(string trackname, string artistname);
|
|
|
|
|
Task<LastResponse> UnloveTrackAsync(string trackname, string artistname);
|
2013-06-14 16:19:26 +01:00
|
|
|
|
}
|
|
|
|
|
}
|