2020-05-05 04:26:37 +01:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2020-05-01 19:05:28 +01:00
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
2020-05-02 12:04:26 +01:00
|
|
|
public interface ISpotifyClient
|
2020-05-01 19:05:28 +01:00
|
|
|
{
|
2020-05-05 04:26:37 +01:00
|
|
|
IPaginator DefaultPaginator { get; }
|
|
|
|
|
2020-05-01 19:05:28 +01:00
|
|
|
IUserProfileClient UserProfile { get; }
|
|
|
|
|
|
|
|
IBrowseClient Browse { get; }
|
2020-05-02 21:48:21 +01:00
|
|
|
|
|
|
|
IShowsClient Shows { get; }
|
|
|
|
|
|
|
|
IPlaylistsClient Playlists { get; }
|
2020-05-03 21:34:03 +01:00
|
|
|
|
|
|
|
ISearchClient Search { get; }
|
2020-05-04 22:02:53 +01:00
|
|
|
|
|
|
|
IFollowClient Follow { get; }
|
2020-05-04 22:04:59 +01:00
|
|
|
|
|
|
|
ITracksClient Tracks { get; }
|
2020-05-05 04:26:37 +01:00
|
|
|
|
|
|
|
Task<List<T>> Paginate<T>(Paging<T> firstPage);
|
|
|
|
Task<List<T>> Paginate<T>(Func<Task<Paging<T>>> getFirstPage);
|
|
|
|
Task<List<T>> Paginate<T>(Paging<T> firstPage, IPaginator paginator);
|
|
|
|
Task<List<T>> Paginate<T>(Func<Task<Paging<T>>> getFirstPage, IPaginator paginator);
|
2020-05-01 19:05:28 +01:00
|
|
|
}
|
|
|
|
}
|