2020-05-07 17:03:20 +01:00
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
|
{
|
|
|
|
|
public class PlayerSeekToRequest : RequestParams
|
|
|
|
|
{
|
2020-05-30 22:32:06 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="positionMs">
|
|
|
|
|
/// The position in milliseconds to seek to. Must be a positive number.
|
|
|
|
|
/// Passing in a position that is greater than the length of the track will
|
|
|
|
|
/// cause the player to start playing the next song.
|
|
|
|
|
/// </param>
|
2020-05-07 17:03:20 +01:00
|
|
|
|
public PlayerSeekToRequest(long positionMs)
|
|
|
|
|
{
|
|
|
|
|
PositonMs = positionMs;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-30 22:32:06 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The position in milliseconds to seek to. Must be a positive number.
|
|
|
|
|
/// Passing in a position that is greater than the length of the track will cause
|
|
|
|
|
/// the player to start playing the next song.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
2020-05-07 17:03:20 +01:00
|
|
|
|
[QueryParam("position_ms")]
|
|
|
|
|
public long PositonMs { get; }
|
|
|
|
|
|
2020-05-30 22:32:06 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The id of the device this command is targeting. If not supplied, the user’s 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
|
|
|
|
|