Class GetListOfCurrentUsersPlaylistsRequest.Builder
java.lang.Object
com.wrapper.spotify.requests.AbstractRequest.Builder<T,BT>
com.wrapper.spotify.requests.data.AbstractDataRequest.Builder<Paging<T>,BT>
com.wrapper.spotify.requests.data.AbstractDataPagingRequest.Builder<PlaylistSimplified,GetListOfCurrentUsersPlaylistsRequest.Builder>
com.wrapper.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
Constructors Constructor Description Builder(String accessToken)Create a newGetListOfCurrentUsersPlaylistsRequest.Builder. -
Method Summary
Modifier and Type Method Description GetListOfCurrentUsersPlaylistsRequestbuild()The request build method.GetListOfCurrentUsersPlaylistsRequest.Builderlimit(Integer limit)The limit setter.GetListOfCurrentUsersPlaylistsRequest.Builderoffset(Integer offset)The offset setter.protected GetListOfCurrentUsersPlaylistsRequest.Builderself()Return this instance to simulate a self-type.Methods inherited from class com.wrapper.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.wrapper.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-privatescope 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-collaborativescope to have been authorized by the user.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.- See Also:
- Spotify: Using Scopes
-
-
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.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<Paging<PlaylistSimplified>,GetListOfCurrentUsersPlaylistsRequest.Builder>- Returns:
- This instance.
-