Skip to content

Commit 952d46f

Browse files
committed
Add Positions body param to PlaylistRemoveItemsRequest, #501
1 parent a9c4aba commit 952d46f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

SpotifyAPI.Web/Models/Request/PlaylistRemoveItemsRequest.cs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,22 @@ namespace SpotifyAPI.Web
66
public class PlaylistRemoveItemsRequest : RequestParams
77
{
88
/// <summary>
9-
///
10-
/// </summary>
11-
/// <param name="tracks">
129
/// An array of objects containing Spotify URIs of the tracks or episodes to remove.
1310
/// For example: { "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },
1411
/// { "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }.
1512
/// A maximum of 100 objects can be sent at once.
16-
/// </param>
17-
public PlaylistRemoveItemsRequest(IList<Item> tracks)
18-
{
19-
Ensure.ArgumentNotNullOrEmptyList(tracks, nameof(tracks));
20-
21-
Tracks = tracks;
22-
}
13+
/// </summary>
14+
/// <value></value>
15+
[BodyParam("tracks")]
16+
public IList<Item>? Tracks { get; set; }
2317

2418
/// <summary>
25-
/// An array of objects containing Spotify URIs of the tracks or episodes to remove.
26-
/// For example: { "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },
27-
/// { "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }.
28-
/// A maximum of 100 objects can be sent at once.
19+
/// An array of positions to delete. This also supports local tracks.
20+
/// SnapshotId MUST be supplied when using this parameter
2921
/// </summary>
3022
/// <value></value>
31-
[BodyParam("tracks")]
32-
public IList<Item> Tracks { get; }
23+
[BodyParam("positions")]
24+
public IList<int>? Positions { get; set; }
3325

3426
/// <summary>
3527
/// The playlist’s snapshot ID against which you want to make the changes.

0 commit comments

Comments
 (0)