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

33 lines
854 B
C#
Raw Normal View History

2020-05-07 17:03:20 +01:00
namespace SpotifyAPI.Web
{
public class PlayerAddToQueueRequest : RequestParams
{
2020-05-30 22:32:06 +01:00
/// <summary>
///
/// </summary>
/// <param name="uri">The uri of the item to add to the queue. Must be a track or an episode uri.</param>
2020-05-07 17:03:20 +01:00
public PlayerAddToQueueRequest(string uri)
{
Ensure.ArgumentNotNullOrEmptyString(uri, nameof(uri));
Uri = uri;
}
2020-05-30 22:32:06 +01:00
/// <summary>
/// The uri of the item to add to the queue. Must be a track or an episode uri.
/// </summary>
/// <value></value>
2020-05-07 17:03:20 +01:00
[QueryParam("uri")]
public string Uri { 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