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

33 lines
854 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 PlayerAddToQueueRequest : RequestParams
{
/// <summary>
///
/// </summary>
/// <param name="uri">The uri of the item to add to the queue. Must be a track or an episode uri.</param>
public PlayerAddToQueueRequest(string uri)
{
Ensure.ArgumentNotNullOrEmptyString(uri, nameof(uri));
Uri = uri;
}
/// <summary>
/// The uri of the item to add to the queue. Must be a track or an episode uri.
/// </summary>
/// <value></value>
[QueryParam("uri")]
public string Uri { 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; }
}
}