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 user’s playback false : Do not shuffle user’s 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 user’s playback false : Do not shuffle user’s 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 user’s 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
|
|
|
|
|