/// <summary> /// Toggles shuffle on or off for user’s playback. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.spotify.com/documentation/web-api/reference/player/toggle-shuffle-for-users-playback/</cref> /// </see> public SocialHttpResponse SetShuffle(SpotifyPlayerSetShuffleOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpPutRequest("/v1/me/player/shuffle", options)); }
/// <summary> /// Toggles shuffle on or off for user’s playback. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SpotifyResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.spotify.com/documentation/web-api/reference/player/toggle-shuffle-for-users-playback/</cref> /// </see> public SpotifyResponse SetShuffle(SpotifyPlayerSetShuffleOptions options) { return(SpotifyNoContentResponse.ParseResponse(Raw.SetShuffle(options))); }