IF.Lastfm/IF.Lastfm.Core/Api/IUserApi.cs

35 lines
1.0 KiB
C#
Raw Normal View History

using System;
2013-06-13 17:27:51 +01:00
using System.Threading.Tasks;
using IF.Lastfm.Core.Api.Enums;
using IF.Lastfm.Core.Api.Helpers;
2013-06-13 17:27:51 +01:00
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public interface IUserApi
{
IAuth Auth { get; }
2013-07-23 15:48:03 +01:00
Task<PageResponse<Album>> GetTopAlbums(string username,
LastStatsTimeSpan span,
int startIndex = 0,
int endIndex = LastFm.DefaultPageLength);
Task<PageResponse<Track>> GetRecentScrobbles(string username,
DateTime since,
2013-07-23 15:48:03 +01:00
int startIndex = 0,
int endIndex = LastFm.DefaultPageLength);
Task<PageResponse<Station>> GetRecentStations(string username,
int pagenumber,
2013-07-23 15:48:03 +01:00
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);
2013-06-15 17:02:11 +01:00
}
2013-06-13 17:27:51 +01:00
}