Spotify.NET/SpotifyAPI.Web/Models/Request/PlayerTransferPlaybackRequest.cs

21 lines
448 B
C#
Raw Normal View History

2020-05-07 17:03:20 +01:00
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; }
}
}