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

31 lines
512 B
C#
Raw Normal View History

2020-05-07 17:03:20 +01:00
namespace SpotifyAPI.Web
{
public class PlayerSetRepeatRequest : RequestParams
{
public PlayerSetRepeatRequest(State state)
{
Ensure.ArgumentNotNull(state, nameof(state));
StateParam = state;
}
[QueryParam("device_id")]
public string DeviceId { get; set; }
[QueryParam("state")]
public State StateParam { get; }
public enum State
{
[String("track")]
Track,
[String("context")]
Context,
[String("off")]
Off
}
}
}