mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Add Positions body param to PlaylistRemoveItemsRequest, #501
This commit is contained in:
parent
a9c4aba7fa
commit
952d46f58f
@ -5,22 +5,6 @@ namespace SpotifyAPI.Web
|
|||||||
{
|
{
|
||||||
public class PlaylistRemoveItemsRequest : RequestParams
|
public class PlaylistRemoveItemsRequest : RequestParams
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="tracks">
|
|
||||||
/// An array of objects containing Spotify URIs of the tracks or episodes to remove.
|
|
||||||
/// For example: { "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },
|
|
||||||
/// { "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }.
|
|
||||||
/// A maximum of 100 objects can be sent at once.
|
|
||||||
/// </param>
|
|
||||||
public PlaylistRemoveItemsRequest(IList<Item> tracks)
|
|
||||||
{
|
|
||||||
Ensure.ArgumentNotNullOrEmptyList(tracks, nameof(tracks));
|
|
||||||
|
|
||||||
Tracks = tracks;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An array of objects containing Spotify URIs of the tracks or episodes to remove.
|
/// An array of objects containing Spotify URIs of the tracks or episodes to remove.
|
||||||
/// For example: { "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },
|
/// For example: { "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },
|
||||||
@ -29,7 +13,15 @@ namespace SpotifyAPI.Web
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[BodyParam("tracks")]
|
[BodyParam("tracks")]
|
||||||
public IList<Item> Tracks { get; }
|
public IList<Item>? Tracks { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An array of positions to delete. This also supports local tracks.
|
||||||
|
/// SnapshotId MUST be supplied when using this parameter
|
||||||
|
/// </summary>
|
||||||
|
/// <value></value>
|
||||||
|
[BodyParam("positions")]
|
||||||
|
public IList<int>? Positions { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The playlist’s snapshot ID against which you want to make the changes.
|
/// The playlist’s snapshot ID against which you want to make the changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user