Class GetCurrentUsersRecentlyPlayedTracksRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<PagingCursorbased<PlayHistory>,GetCurrentUsersRecentlyPlayedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<PagingCursorbased<PlayHistory>,GetCurrentUsersRecentlyPlayedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingCursorbasedRequest.Builder<PlayHistory,Date,GetCurrentUsersRecentlyPlayedTracksRequest.Builder>
se.michaelthelin.spotify.requests.data.player.GetCurrentUsersRecentlyPlayedTracksRequest.Builder
- All Implemented Interfaces:
IPagingCursorbasedRequestBuilder<PlayHistory,
,Date, GetCurrentUsersRecentlyPlayedTracksRequest.Builder> IRequest.Builder<PagingCursorbased<PlayHistory>,
GetCurrentUsersRecentlyPlayedTracksRequest.Builder>
- Enclosing class:
GetCurrentUsersRecentlyPlayedTracksRequest
public static final class GetCurrentUsersRecentlyPlayedTracksRequest.Builder
extends AbstractDataPagingCursorbasedRequest.Builder<PlayHistory,Date,GetCurrentUsersRecentlyPlayedTracksRequest.Builder>
Builder class for building a
GetCurrentUsersRecentlyPlayedTracksRequest
.-
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 newGetCurrentUsersRecentlyPlayedTracksRequest.Builder
.Your access token must have the
user-read-recently-played
scope authorized in order to read the user's recently played track.- 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 items to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetCurrentUsersRecentlyPlayedTracksRequest.Builder
.
-
after
The after date setter.- Parameters:
after
- Optional. ADate
object. Returns all items after (but not including) this cursor position. If this is specified,before(Date)
must not be specified.- Returns:
- A
GetCurrentUsersRecentlyPlayedTracksRequest.Builder
.
-
before
The before date setter.- Parameters:
before
- Optional. ADate
object. Returns all items before (but not including) this cursor position. If this is specified,after(Date)
must not be specified.- Returns:
- A
GetCurrentUsersRecentlyPlayedTracksRequest.Builder
.
-
build
The request build method.- Returns:
- A custom
GetCurrentUsersRecentlyPlayedTracksRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<PagingCursorbased<PlayHistory>,
GetCurrentUsersRecentlyPlayedTracksRequest.Builder> - Returns:
- This instance.
-