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

30 lines
799 B
C#
Raw Normal View History

2020-05-07 17:03:20 +01:00
namespace SpotifyAPI.Web
{
public class PlayerVolumeRequest : RequestParams
{
2020-05-30 22:32:06 +01:00
/// <summary>
///
/// </summary>
/// <param name="volumePercent">The volume to set. Must be a value from 0 to 100 inclusive.</param>
2020-05-07 17:03:20 +01:00
public PlayerVolumeRequest(int volumePercent)
{
VolumePercent = volumePercent;
}
2020-05-30 22:32:06 +01:00
/// <summary>
/// The volume to set. Must be a value from 0 to 100 inclusive.
/// </summary>
/// <value></value>
2020-05-07 17:03:20 +01:00
[QueryParam("volume_percent")]
public int VolumePercent { 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