mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +00:00
34 lines
713 B
C#
34 lines
713 B
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SpotifyAPI.Web
|
|
{
|
|
public class PlaylistRemoveItemsRequest : RequestParams
|
|
{
|
|
[BodyParam("tracks")]
|
|
public List<Item> Tracks { get; set; }
|
|
|
|
[BodyParam("snapshot_id")]
|
|
public string SnapshotId { get; set; }
|
|
|
|
protected override void CustomEnsure()
|
|
{
|
|
Ensure.ArgumentNotNullOrEmptyList(Tracks, nameof(Tracks));
|
|
}
|
|
|
|
public class Item
|
|
{
|
|
public Item(string uri)
|
|
{
|
|
Uri = uri;
|
|
}
|
|
|
|
[JsonProperty("uri")]
|
|
public string Uri { get; set; }
|
|
|
|
[JsonProperty("positions", NullValueHandling = NullValueHandling.Ignore)]
|
|
public List<int> Positions { get; set; }
|
|
}
|
|
}
|
|
}
|