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);
|
|
|
|
|
2020-05-05 14:30:00 +01:00
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
2020-05-03 08:06:28 +01:00
|
|
|
Task<FullPlaylist> Get(string playlistId);
|
2020-05-05 14:30:00 +01:00
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
2020-05-03 08:06:28 +01:00
|
|
|
Task<FullPlaylist> Get(string playlistId, PlaylistGetRequest request);
|
|
|
|
|
|
|
|
Task<bool> ReplaceItems(string playlistId, PlaylistReplaceItemsRequest request);
|
|
|
|
|
|
|
|
Task<Paging<SimplePlaylist>> CurrentUsers();
|
|
|
|
Task<Paging<SimplePlaylist>> CurrentUsers(PlaylistCurrentUsersRequest request);
|
2020-05-03 12:11:53 +01:00
|
|
|
|
|
|
|
Task<bool> ChangeDetails(string playlistId, PlaylistChangeDetailsRequest request);
|
2020-05-03 21:34:03 +01:00
|
|
|
|
|
|
|
Task<SnapshotResponse> ReorderItems(string playlistId, PlaylistReorderItemsRequest request);
|
2020-05-02 21:48:21 +01:00
|
|
|
}
|
|
|
|
}
|