Spotify.NET/SpotifyAPI.Web/Models/Request/PlayerVolumeRequest.cs
2020-05-30 23:32:06 +02:00

30 lines
799 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace SpotifyAPI.Web
{
public class PlayerVolumeRequest : RequestParams
{
/// <summary>
///
/// </summary>
/// <param name="volumePercent">The volume to set. Must be a value from 0 to 100 inclusive.</param>
public PlayerVolumeRequest(int volumePercent)
{
VolumePercent = volumePercent;
}
/// <summary>
/// The volume to set. Must be a value from 0 to 100 inclusive.
/// </summary>
/// <value></value>
[QueryParam("volume_percent")]
public int VolumePercent { get; }
/// <summary>
/// The id of the device this command is targeting. If not supplied, the users currently active device is the target.
/// </summary>
/// <value></value>
[QueryParam("device_id")]
public string? DeviceId { get; set; }
}
}