using System.Collections.Generic; using Newtonsoft.Json; namespace SpotifyAPI.Web { public class PlaylistRemoveItemsRequest : RequestParams { public PlaylistRemoveItemsRequest(List tracks) { Tracks = tracks; } [BodyParam("tracks")] public List 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; } } } }