Spotify.NET/SpotifyAPI.Web/Models/Request/PlayerTransferPlaybackRequest.cs
2020-05-07 18:03:20 +02:00

21 lines
448 B
C#

using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class PlayerTransferPlaybackRequest : RequestParams
{
public PlayerTransferPlaybackRequest(IList<string> deviceIds)
{
Ensure.ArgumentNotNullOrEmptyList(deviceIds, nameof(deviceIds));
DeviceIds = deviceIds;
}
[BodyParam("device_ids")]
public IList<string> DeviceIds { get; }
[BodyParam("play")]
public bool? Play { get; set; }
}
}