using System.Threading;
using System.Threading.Tasks;
namespace SpotifyAPI.Web
{
///
/// Player Endpoints.
/// These endpoints are in beta.
/// While we encourage you to build with them, a situation may arise
/// where we need to disable some or all of the functionality and/or change how
/// they work without prior notice. Please report any issues via our developer community forum.
///
public interface IPlayerClient
{
///
/// Skips to next track in the user’s queue.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-next-track
///
///
Task SkipNext(CancellationToken cancel = default);
///
/// Skips to next track in the user’s queue.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-next-track
///
///
Task SkipNext(PlayerSkipNextRequest request, CancellationToken cancel = default);
///
/// Set the repeat mode for the user’s playback. Options are repeat-track, repeat-context, and off.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-set-repeat-mode-on-users-playback
///
///
Task SetRepeat(PlayerSetRepeatRequest request, CancellationToken cancel = default);
///
/// Transfer playback to a new device and determine if it should start playing.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-transfer-a-users-playback
///
///
Task TransferPlayback(PlayerTransferPlaybackRequest request, CancellationToken cancel = default);
///
/// Get the object currently being played on the user’s Spotify account.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-the-users-currently-playing-track
///
///
Task GetCurrentlyPlaying(PlayerCurrentlyPlayingRequest request, CancellationToken cancel = default);
///
/// Get information about the user’s current playback state, including track or episode, progress, and active device.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-information-about-the-users-current-playback
///
///
Task GetCurrentPlayback(CancellationToken cancel = default);
///
/// Get information about the user’s current playback state, including track or episode, progress, and active device.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-information-about-the-users-current-playback
///
///
Task GetCurrentPlayback(PlayerCurrentPlaybackRequest request, CancellationToken cancel = default);
///
/// Seeks to the given position in the user’s currently playing track.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-seek-to-position-in-currently-playing-track
///
///
Task SeekTo(PlayerSeekToRequest request, CancellationToken cancel = default);
///
/// Skips to previous track in the user’s queue.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-previous-track
///
///
Task SkipPrevious(CancellationToken cancel = default);
///
/// Skips to previous track in the user’s queue.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-previous-track
///
///
Task SkipPrevious(PlayerSkipPreviousRequest request, CancellationToken cancel = default);
///
/// Start a new context or resume current playback on the user’s active device.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-start-a-users-playback
///
///
Task ResumePlayback(CancellationToken cancel = default);
///
/// Start a new context or resume current playback on the user’s active device.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-start-a-users-playback
///
///
Task ResumePlayback(PlayerResumePlaybackRequest request, CancellationToken cancel = default);
///
/// Pause playback on the user’s account.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-pause-a-users-playback
///
///
Task PausePlayback(CancellationToken cancel = default);
///
/// Pause playback on the user’s account.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-pause-a-users-playback
///
///
Task PausePlayback(PlayerPausePlaybackRequest request, CancellationToken cancel = default);
///
/// Set the volume for the user’s current playback device.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-set-volume-for-users-playback
///
///
Task SetVolume(PlayerVolumeRequest request, CancellationToken cancel = default);
///
/// Get tracks from the current user’s recently played tracks. Note: Currently doesn’t support podcast episodes.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-recently-played
///
///
Task> GetRecentlyPlayed(CancellationToken cancel = default);
///
/// Get tracks from the current user’s recently played tracks. Note: Currently doesn’t support podcast episodes.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-recently-played
///
///
Task> GetRecentlyPlayed(PlayerRecentlyPlayedRequest request, CancellationToken cancel = default);
///
/// Get information about a user’s available devices.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-users-available-devices
///
///
Task GetAvailableDevices(CancellationToken cancel = default);
///
/// Toggle shuffle on or off for user’s playback.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-toggle-shuffle-for-users-playback
///
///
Task SetShuffle(PlayerShuffleRequest request, CancellationToken cancel = default);
///
/// Add an item to the end of the user’s current playback queue.
///
/// The request-model which contains required and optional parameters.
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-add-to-queue
///
///
Task AddToQueue(PlayerAddToQueueRequest request, CancellationToken cancel = default);
///
/// Get the list of objects that make up the user's queue.
///
/// The cancellation-token to allow to cancel the request.
///
/// https://developer.spotify.com/documentation/web-api/reference/#/operations/get-queue
///
///
Task GetQueue(CancellationToken cancel = default);
}
}