mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +00:00
48 lines
1.7 KiB
C#
48 lines
1.7 KiB
C#
using System.Collections.Generic;
|
||
using Newtonsoft.Json;
|
||
|
||
namespace SpotifyAPI.Web
|
||
{
|
||
public class PlaylistRemoveItemsRequest : RequestParams
|
||
{
|
||
/// <summary>
|
||
/// 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.
|
||
/// </summary>
|
||
/// <value></value>
|
||
[BodyParam("tracks")]
|
||
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>
|
||
/// The playlist’s snapshot ID against which you want to make the changes.
|
||
/// The API will validate that the specified items exist and in the specified positions and make the changes,
|
||
/// even if more recent changes have been made to the playlist.
|
||
/// </summary>
|
||
/// <value></value>
|
||
[BodyParam("snapshot_id")]
|
||
public string? SnapshotId { get; set; }
|
||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034")]
|
||
public class Item
|
||
{
|
||
[JsonProperty("uri", NullValueHandling = NullValueHandling.Ignore)]
|
||
public string? Uri { get; set; }
|
||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227")]
|
||
[JsonProperty("positions", NullValueHandling = NullValueHandling.Ignore)]
|
||
public List<int>? Positions { get; set; }
|
||
}
|
||
}
|
||
}
|
||
|