Class SetRepeatModeOnUsersPlaybackRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<String,SetRepeatModeOnUsersPlaybackRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<String,SetRepeatModeOnUsersPlaybackRequest.Builder>
se.michaelthelin.spotify.requests.data.player.SetRepeatModeOnUsersPlaybackRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<String,
SetRepeatModeOnUsersPlaybackRequest.Builder>
- Enclosing class:
SetRepeatModeOnUsersPlaybackRequest
public static final class SetRepeatModeOnUsersPlaybackRequest.Builder
extends AbstractDataRequest.Builder<String,SetRepeatModeOnUsersPlaybackRequest.Builder>
Builder class for building a
SetRepeatModeOnUsersPlaybackRequest
.-
Constructor Summary
-
Method Summary
Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newSetRepeatModeOnUsersPlaybackRequest.Builder
.Your access token must have the
user-modify-playback-state
scope authorized in order to control playback.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
state
The repeat state setter.- Parameters:
state
- Required.track
,context
oroff
.track
will repeat the current track.context
will repeat the current context.off
will turn repeat off.- Returns:
- A
SetRepeatModeOnUsersPlaybackRequest.Builder
.
-
device_id
The device ID setter.- Parameters:
device_id
- Optional. The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.- Returns:
- A
SetRepeatModeOnUsersPlaybackRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
SetRepeatModeOnUsersPlaybackRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<String,
SetRepeatModeOnUsersPlaybackRequest.Builder> - Returns:
- This instance.
-