Class ToggleShuffleForUsersPlaybackRequest

java.lang.Object
de.sonallux.spotify.api.apis.player.ToggleShuffleForUsersPlaybackRequest

public class ToggleShuffleForUsersPlaybackRequest extends Object

Toggle Playback Shuffle request

Required OAuth scopes

user-modify-playback-state

Response

Command sent

  • Constructor Details

    • ToggleShuffleForUsersPlaybackRequest

      public ToggleShuffleForUsersPlaybackRequest(ApiClient apiClient, boolean state)
      Toggle Playback Shuffle request
      Parameters:
      apiClient -

      The API client

      state -

      true : Shuffle user's playback.
      false : Do not shuffle user's playback.

  • Method Details

    • deviceId

      public ToggleShuffleForUsersPlaybackRequest deviceId(String deviceId)
      Parameters:
      deviceId -

      The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

      Returns:
      this request
    • build

      public ApiCall<Void> build()
      Build the request into an executable api call
      Returns:
      an executable api call