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

35 lines
872 B
C#
Raw 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
{
[QueryParam("device_id")]
2020-05-25 17:00:38 +01:00
public string? DeviceId { get; set; }
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
[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
[BodyParam("offset")]
2020-05-25 17:00:38 +01:00
public Offset? OffsetParam { get; set; }
2020-05-07 17:03:20 +01:00
[BodyParam("position_ms")]
public int? PositionMs { get; set; }
public class Offset
{
[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
[JsonProperty("position", NullValueHandling = NullValueHandling.Ignore)]
public int? Position { get; set; }
}
}
}
2020-05-25 17:00:38 +01:00