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

38 lines
1.5 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);
2020-05-07 17:03:20 +01:00
Task<Paging<PlaylistTrack<IPlayableItem>>> GetItems(string playlistId);
Task<Paging<PlaylistTrack<IPlayableItem>>> GetItems(string playlistId, PlaylistGetItemsRequest request);
2020-05-03 00:00:35 +01:00
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);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
2020-05-03 08:06:28 +01:00
Task<FullPlaylist> Get(string playlistId);
[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);
Task<bool> ChangeDetails(string playlistId, PlaylistChangeDetailsRequest request);
Task<SnapshotResponse> ReorderItems(string playlistId, PlaylistReorderItemsRequest request);
2020-05-02 21:48:21 +01:00
}
}