namespace SpotifyAPI.Web
{
public class PlayerSetRepeatRequest : RequestParams
{
///
///
/// track, context or off. track will repeat the current track. context will repeat the current context.
/// off will turn repeat off.
///
public PlayerSetRepeatRequest(State state)
{
Ensure.ArgumentNotNull(state, nameof(state));
StateParam = state;
}
///
/// The id of the device this command is targeting. If not supplied, the user’s currently active device is the target.
///
///
[QueryParam("device_id")]
public string? DeviceId { get; set; }
///
/// track, context or off. track will repeat the current track. context will repeat the current context.
/// off will turn repeat off.
///
///
[QueryParam("state")]
public State StateParam { get; }
public enum State
{
[String("track")]
Track,
[String("context")]
Context,
[String("off")]
Off
}
}
}