Class GetListOfCurrentUsersPlaylistsRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<PlaylistSimplified>,GetListOfCurrentUsersPlaylistsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<PlaylistSimplified>,GetListOfCurrentUsersPlaylistsRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<PlaylistSimplified,GetListOfCurrentUsersPlaylistsRequest.Builder>
se.michaelthelin.spotify.requests.data.playlists.GetListOfCurrentUsersPlaylistsRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<PlaylistSimplified,
,GetListOfCurrentUsersPlaylistsRequest.Builder> IRequest.Builder<Paging<PlaylistSimplified>,
GetListOfCurrentUsersPlaylistsRequest.Builder>
- Enclosing class:
GetListOfCurrentUsersPlaylistsRequest
public static final class GetListOfCurrentUsersPlaylistsRequest.Builder
extends AbstractDataPagingRequest.Builder<PlaylistSimplified,GetListOfCurrentUsersPlaylistsRequest.Builder>
Builder class for building a
GetListOfCurrentUsersPlaylistsRequest
-
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.michaelthelin.spotify.requests.IRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newGetListOfCurrentUsersPlaylistsRequest.Builder
.Private playlists are only retrievable for the current user and requires the
playlist-read-private
scope to have been authorized by the user. Note: This scope alone will not return collaborative playlists, even though they are always private.Collaborative playlists are only retrievable for the current user and requires the
playlist-read-collaborative
scope to have been authorized by the user.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of playlists to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetListOfCurrentUsersPlaylistsRequest.Builder
.
-
offset
The offset setter.- Parameters:
offset
- Optional. The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100.000. Use withlimit(Integer)
to get the next set of playlists.- Returns:
- A
GetListOfCurrentUsersPlaylistsRequest.Builder
.
-
build
The request build method.- Returns:
- A custom
GetListOfCurrentUsersPlaylistsRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<PlaylistSimplified>,
GetListOfCurrentUsersPlaylistsRequest.Builder> - Returns:
- This instance.
-