Spotify.NET/SpotifyAPI.Web/Clients/Interfaces/IPlaylistsClient.cs

36 lines
1.4 KiB
C#
Raw Normal View History

2020-05-03 07:10:41 +01:00
using System.Collections.Generic;
2020-05-02 21:48:21 +01:00
using System.Threading.Tasks;
namespace SpotifyAPI.Web
{
public interface IPlaylistsClient
{
Task<SnapshotResponse> RemoveItems(string playlistId, PlaylistRemoveItemsRequest request);
2020-05-03 00:00:35 +01:00
Task<SnapshotResponse> AddItems(string playlistId, PlaylistAddItemsRequest request);
Task<Paging<PlaylistTrack<IPlaylistItem>>> GetItems(string playlistId);
Task<Paging<PlaylistTrack<IPlaylistItem>>> GetItems(string playlistId, PlaylistGetItemsRequest request);
Task<FullPlaylist> Create(string userId, PlaylistCreateRequest request);
2020-05-03 07:10:41 +01:00
Task<bool> UploadCover(string playlistId, string base64JpgData);
Task<List<Image>> GetCovers(string playlistId);
2020-05-03 08:06:28 +01:00
Task<Paging<SimplePlaylist>> GetUsers(string userId);
Task<Paging<SimplePlaylist>> GetUsers(string userId, PlaylistGetUsersRequest request);
Task<FullPlaylist> Get(string playlistId);
Task<FullPlaylist> Get(string playlistId, PlaylistGetRequest request);
Task<bool> ReplaceItems(string playlistId, PlaylistReplaceItemsRequest request);
Task<Paging<SimplePlaylist>> CurrentUsers();
Task<Paging<SimplePlaylist>> CurrentUsers(PlaylistCurrentUsersRequest request);
Task<bool> ChangeDetails(string playlistId, PlaylistChangeDetailsRequest request);
Task<SnapshotResponse> ReorderItems(string playlistId, PlaylistReorderItemsRequest request);
2020-05-02 21:48:21 +01:00
}
}