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

63 lines
1.7 KiB
C#
Raw Permalink Normal View History

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