IF.Lastfm/IF.Lastfm.Core/Api/IUserApi.cs
Rikki Tooley 73e1831986 user.shout, artist.shout.
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.
2013-07-30 00:36:55 +01:00

35 lines
1.0 KiB
C#

using System;
using System.Threading.Tasks;
using IF.Lastfm.Core.Api.Enums;
using IF.Lastfm.Core.Api.Helpers;
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public interface IUserApi
{
IAuth Auth { get; }
Task<PageResponse<Album>> GetTopAlbums(string username,
LastStatsTimeSpan span,
int startIndex = 0,
int endIndex = LastFm.DefaultPageLength);
Task<PageResponse<Track>> GetRecentScrobbles(string username,
DateTime since,
int startIndex = 0,
int endIndex = LastFm.DefaultPageLength);
Task<PageResponse<Station>> GetRecentStations(string username,
int pagenumber,
int count = LastFm.DefaultPageLength);
Task<PageResponse<Shout>> GetShoutsAsync(string username,
int pagenumber,
int count = LastFm.DefaultPageLength);
Task<LastResponse<User>> GetInfoAsync(string username);
Task<LastResponse> AddShoutAsync(string recipient, string message);
}
}