Spotify.NET/SpotifyAPI.Web/Clients/Interfaces/ISpotifyClient.cs
2020-05-05 05:26:37 +02:00

31 lines
733 B
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; }
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);
}
}