Class SetRepeatModeOnUsersPlaybackRequest

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

public class SetRepeatModeOnUsersPlaybackRequest extends Object

Set Repeat Mode request

Required OAuth scopes

user-modify-playback-state

Response

Command sent

  • Constructor Details

    • SetRepeatModeOnUsersPlaybackRequest

      public SetRepeatModeOnUsersPlaybackRequest(ApiClient apiClient, String state)
      Set Repeat Mode request
      Parameters:
      apiClient -

      The API client

      state -

      track, context or off.
      track will repeat the current track.
      context will repeat the current context.
      off will turn repeat off.

  • Method Details

    • deviceId

      public SetRepeatModeOnUsersPlaybackRequest 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