using System.Net; 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. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-next-track /// /// Task SkipNext(); /// /// Skips to next track in the user’s queue. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-next-track /// /// Task SkipNext(PlayerSkipNextRequest request); /// /// 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. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-set-repeat-mode-on-users-playback /// /// Task SetRepeat(PlayerSetRepeatRequest request); /// /// Transfer playback to a new device and determine if it should start playing. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-transfer-a-users-playback /// /// Task TransferPlayback(PlayerTransferPlaybackRequest request); /// /// Get the object currently being played on the user’s Spotify account. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-the-users-currently-playing-track /// /// Task GetCurrentlyPlaying(PlayerCurrentlyPlayingRequest request); /// /// Get information about the user’s current playback state, including track or episode, progress, and active device. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-information-about-the-users-current-playback /// /// Task GetCurrentPlayback(); /// /// 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. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-information-about-the-users-current-playback /// /// Task GetCurrentPlayback(PlayerCurrentPlaybackRequest request); /// /// Seeks to the given position in the user’s currently playing track. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-seek-to-position-in-currently-playing-track /// /// Task SeekTo(PlayerSeekToRequest request); /// /// Skips to previous track in the user’s queue. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-previous-track /// /// Task SkipPrevious(); /// /// Skips to previous track in the user’s queue. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-skip-users-playback-to-previous-track /// /// Task SkipPrevious(PlayerSkipPreviousRequest request); /// /// Start a new context or resume current playback on the user’s active device. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-start-a-users-playback /// /// Task ResumePlayback(); /// /// Start a new context or resume current playback on the user’s active device. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-start-a-users-playback /// /// Task ResumePlayback(PlayerResumePlaybackRequest request); /// /// Pause playback on the user’s account. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-pause-a-users-playback /// /// Task PausePlayback(); /// /// Pause playback on the user’s account. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-pause-a-users-playback /// /// Task PausePlayback(PlayerPausePlaybackRequest request); /// /// Set the volume for the user’s current playback device. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-set-volume-for-users-playback /// /// Task SetVolume(PlayerVolumeRequest request); /// /// Get tracks from the current user’s recently played tracks. Note: Currently doesn’t support podcast episodes. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-recently-played /// /// Task> GetRecentlyPlayed(); /// /// 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. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-recently-played /// /// Task> GetRecentlyPlayed(PlayerRecentlyPlayedRequest request); /// /// Get information about a user’s available devices. /// /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-a-users-available-devices /// /// Task GetAvailableDevices(); /// /// Toggle shuffle on or off for user’s playback. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-toggle-shuffle-for-users-playback /// /// Task SetShuffle(PlayerShuffleRequest request); /// /// Add an item to the end of the user’s current playback queue. /// /// The request-model which contains required and optional parameters. /// /// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-add-to-queue /// /// Task AddToQueue(PlayerAddToQueueRequest request); } }