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

36 lines
1.1 KiB
C#
Raw Permalink 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 PlayerSeekToRequest : RequestParams
{
/// <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>
public PlayerSeekToRequest(long positionMs)
{
PositonMs = positionMs;
}
/// <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>
[QueryParam("position_ms")]
public long PositonMs { 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; }
}
}