2020-05-07 17:03:20 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class PlayerTransferPlaybackRequest : RequestParams
|
|
|
|
{
|
2020-05-30 22:20:42 +01:00
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="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
|
|
|
|
/// </param>
|
2020-05-07 17:03:20 +01:00
|
|
|
public PlayerTransferPlaybackRequest(IList<string> deviceIds)
|
|
|
|
{
|
|
|
|
Ensure.ArgumentNotNullOrEmptyList(deviceIds, nameof(deviceIds));
|
|
|
|
|
|
|
|
DeviceIds = deviceIds;
|
|
|
|
}
|
|
|
|
|
2020-05-30 22:20:42 +01:00
|
|
|
/// <summary>
|
|
|
|
/// 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
|
|
|
|
/// </summary>
|
|
|
|
/// <value></value>
|
2020-05-07 17:03:20 +01:00
|
|
|
[BodyParam("device_ids")]
|
|
|
|
public IList<string> DeviceIds { get; }
|
|
|
|
|
2020-05-30 22:20:42 +01:00
|
|
|
/// <summary>
|
|
|
|
/// true: ensure playback happens on new device. false or not provided: keep the current playback state.
|
|
|
|
/// </summary>
|
|
|
|
/// <value></value>
|
2020-05-07 17:03:20 +01:00
|
|
|
[BodyParam("play")]
|
|
|
|
public bool? Play { get; set; }
|
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|