2020-05-08 11:09:59 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
|
{
|
|
|
|
|
public interface IPersonalizationClient
|
|
|
|
|
{
|
2020-05-30 22:20:42 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the current user’s top tracks based on calculated affinity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-top-artists-and-tracks
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-08 11:09:59 +01:00
|
|
|
|
Task<Paging<FullTrack>> GetTopTracks();
|
2020-05-30 22:20:42 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the current user’s top tracks based on calculated affinity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">The request-model which contains required and optional parameters.</param>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-top-artists-and-tracks
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-08 11:09:59 +01:00
|
|
|
|
Task<Paging<FullTrack>> GetTopTracks(PersonalizationTopRequest request);
|
|
|
|
|
|
2020-05-30 22:20:42 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the current user’s top artists based on calculated affinity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-top-artists-and-tracks
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-08 11:09:59 +01:00
|
|
|
|
Task<Paging<FullArtist>> GetTopArtists();
|
2020-05-30 22:20:42 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the current user’s top artists based on calculated affinity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request">The request-model which contains required and optional parameters.</param>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-top-artists-and-tracks
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <returns></returns>
|
2020-05-08 11:09:59 +01:00
|
|
|
|
Task<Paging<FullArtist>> GetTopArtists(PersonalizationTopRequest request);
|
|
|
|
|
}
|
|
|
|
|
}
|