using System.Collections.Generic; namespace SpotifyAPI.Web { public class PlayerTransferPlaybackRequest : RequestParams { /// /// /// /// /// A JSON array containing the ID of the device on which playback should be started/transferred. /// For example:{device_ids:["74ASZWbe4lXaubB36ztrGX"]} /// Note: Although an array is accepted, only a single device_id is currently supported. /// Supplying more than one will return 400 Bad Request /// public PlayerTransferPlaybackRequest(IList deviceIds) { Ensure.ArgumentNotNullOrEmptyList(deviceIds, nameof(deviceIds)); DeviceIds = deviceIds; } /// /// A JSON array containing the ID of the device on which playback should be started/transferred. /// For example:{device_ids:["74ASZWbe4lXaubB36ztrGX"]} /// Note: Although an array is accepted, only a single device_id is currently supported. /// Supplying more than one will return 400 Bad Request /// /// [BodyParam("device_ids")] public IList DeviceIds { get; } /// /// true: ensure playback happens on new device. false or not provided: keep the current playback state. /// /// [BodyParam("play")] public bool? Play { get; set; } } }