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

63 lines
1.7 KiB
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.

using System.Collections.Generic;
using Newtonsoft.Json;
namespace SpotifyAPI.Web
{
public class PlayerResumePlaybackRequest : RequestParams
{
/// <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; }
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[BodyParam("context_uri")]
public string? ContextUri { get; set; }
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227")]
[BodyParam("uris")]
public IList<string>? Uris { get; set; }
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[BodyParam("offset")]
public Offset? OffsetParam { get; set; }
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[BodyParam("position_ms")]
public int? PositionMs { get; set; }
public class Offset
{
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[JsonProperty("uri", NullValueHandling = NullValueHandling.Ignore)]
public string? Uri { get; set; }
/// <summary>
/// Undocumented by Spotify Beta Docs
/// </summary>
/// <value></value>
[JsonProperty("position", NullValueHandling = NullValueHandling.Ignore)]
public int? Position { get; set; }
}
}
}