2013-06-15 16:17:37 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2013-06-13 17:27:51 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using IF.Lastfm.Core.Api.Enums;
|
2013-06-14 13:11:42 +01:00
|
|
|
|
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-06-15 16:17:37 +01:00
|
|
|
|
Task<PageResponse<Album>> GetTopAlbums(LastStatsTimeSpan span,
|
|
|
|
|
int startIndex = 0,
|
|
|
|
|
int endIndex = LastFm.DefaultPageLength);
|
|
|
|
|
|
|
|
|
|
Task<PageResponse<Track>> GetRecentScrobbles(string username, DateTime since,
|
2013-06-13 17:27:51 +01:00
|
|
|
|
int startIndex = 0,
|
|
|
|
|
int endIndex = LastFm.DefaultPageLength);
|
|
|
|
|
}
|
2013-06-15 16:17:37 +01:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
*
|
|
|
|
|
* limit (Optional) : The number of results to fetch per page. Defaults to 50. Maximum is 200.
|
|
|
|
|
user (Required) : The last.fm username to fetch the recent tracks of.
|
|
|
|
|
page (Optional) : The page number to fetch. Defaults to first page.
|
|
|
|
|
from (Optional) : Beginning timestamp of a range - only display scrobbles after this time, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone.
|
|
|
|
|
extended (0|1) (Optional) : Includes extended data in each artist, and whether or not the user has loved each track
|
|
|
|
|
to (Optional) : End timestamp of a range - only display scrobbles before this time, in UNIX timestamp format (integer number of seconds since 00:00:00, January 1st 1970 UTC). This must be in the UTC time zone.
|
|
|
|
|
api_key (Required) : A Last.fm API key.
|
|
|
|
|
*
|
|
|
|
|
* */
|
2013-06-13 17:27:51 +01:00
|
|
|
|
}
|