mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
73e1831986
the api doesn't have album.shout and track.shout but i made commands for them anyway, not put them in AlbumApi or TrackApi though.
28 lines
962 B
C#
28 lines
962 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using IF.Lastfm.Core.Api.Helpers;
|
|
using IF.Lastfm.Core.Objects;
|
|
|
|
namespace IF.Lastfm.Core.Api
|
|
{
|
|
public interface ITrackApi
|
|
{
|
|
IAuth Auth { get; }
|
|
|
|
Task<LastResponse> ScrobbleAsync(Scrobble scrobble);
|
|
Task<LastResponse> ScrobbleAsync(IEnumerable<Scrobble> scrobble);
|
|
|
|
Task<PageResponse<Shout>> GetShoutsForTrackAsync(string trackname,
|
|
string artistname,
|
|
bool autocorrect = false,
|
|
int page = 0,
|
|
int count = LastFm.DefaultPageLength);
|
|
|
|
Task<LastResponse<Track>> GetInfoAsync(string trackname, string artistname, string username = "");
|
|
|
|
Task<LastResponse> LoveTrackAsync(string trackname, string artistname);
|
|
Task<LastResponse> UnloveTrackAsync(string trackname, string artistname);
|
|
|
|
//Task<LastResponse> AddShoutAsync(string trackname, string artistname, string message);
|
|
}
|
|
} |