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

31 lines
792 B
C#
Raw Normal View History

2020-05-07 17:03:20 +01:00
namespace SpotifyAPI.Web
{
public class PlayerShuffleRequest : RequestParams
{
2020-05-30 22:32:06 +01:00
/// <summary>
///
/// </summary>
/// <param name="state">true : Shuffle users playback false : Do not shuffle users playback.</param>
2020-05-07 17:03:20 +01:00
public PlayerShuffleRequest(bool state)
{
State = state;
}
2020-05-30 22:32:06 +01:00
/// <summary>
/// true : Shuffle users playback false : Do not shuffle users playback.
/// </summary>
/// <value></value>
2020-05-07 17:03:20 +01:00
[QueryParam("state")]
public bool State { get; }
2020-05-30 22:32:06 +01:00
/// <summary>
/// The id of the device this command is targeting. If not supplied,
/// the users currently active device is the target.
/// </summary>
/// <value></value>
2020-05-07 17:03:20 +01:00
[QueryParam("device_id")]
2020-05-25 17:00:38 +01:00
public string? DeviceId { get; set; }
2020-05-07 17:03:20 +01:00
}
}
2020-05-25 17:00:38 +01:00