Spotify.NET/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs
2020-05-11 18:55:35 +02:00

43 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SpotifyAPI.Web
{
public interface ISpotifyClient
{
IPaginator DefaultPaginator { get; }
IUserProfileClient UserProfile { get; }
IBrowseClient Browse { get; }
IShowsClient Shows { get; }
IPlaylistsClient Playlists { get; }
ISearchClient Search { get; }
IFollowClient Follow { get; }
ITracksClient Tracks { get; }
IPlayerClient Player { get; }
IAlbumsClient Albums { get; }
IArtistsClient Artists { get; }
IPersonalizationClient Personalization { get; }
IEpisodesClient Episodes { get; }
Task<List<T>> Paginate<T>(Paging<T> firstPage);
Task<List<T>> Paginate<T, TNext>(Paging<T, TNext> firstPage, Func<TNext, Paging<T, TNext>> mapper);
Task<List<T>> Paginate<T>(Func<Task<Paging<T>>> getFirstPage);
Task<List<T>> Paginate<T, TNext>(Func<Task<Paging<T, TNext>>> getFirstPage, Func<TNext, Paging<T, TNext>> mapper);
Task<List<T>> Paginate<T>(Paging<T> firstPage, IPaginator paginator);
Task<List<T>> Paginate<T>(Func<Task<Paging<T>>> getFirstPage, IPaginator paginator);
}
}