Class GetShowsEpisodesRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<EpisodeSimplified>,GetShowsEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<EpisodeSimplified>,GetShowsEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<EpisodeSimplified,GetShowsEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.shows.GetShowsEpisodesRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<EpisodeSimplified,
,GetShowsEpisodesRequest.Builder> IRequest.Builder<Paging<EpisodeSimplified>,
GetShowsEpisodesRequest.Builder>
- Enclosing class:
GetShowsEpisodesRequest
public static final class GetShowsEpisodesRequest.Builder
extends AbstractDataPagingRequest.Builder<EpisodeSimplified,GetShowsEpisodesRequest.Builder>
Builder class for building a
GetShowsEpisodesRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The show ID setter.The limit setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.The offset setter.protected GetShowsEpisodesRequest.Builder
self()
Return this instance to simulate a self-type.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 newGetShowsEpisodesRequest.Builder
instance.Reading the user’s resume points on episode objects requires the
user-read-playback-position
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
id
The show ID setter.- Parameters:
id
- The Spotify ID for the show.- Returns:
- A
GetShowsEpisodesRequest.Builder
. - See Also:
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of episodes to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
GetShowsEpisodesRequest.Builder
.
-
offset
The offset setter.- Parameters:
offset
- Optional. The index of the first episode to return. Default: 0 (i.e., the first object). Use withlimit(Integer)
to get the next set of objects.- Returns:
- A
GetShowsEpisodesRequest.Builder
.
-
market
The market country code setter.If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. Note: If neither market or user country are provided, the content is considered unavailable for the client.
Users can view the country that is associated with their account in the account settings.
- Parameters:
market
- Optional. An ISO 3166-1 alpha-2 country code.- Returns:
- A
GetShowsEpisodesRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetShowsEpisodesRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<EpisodeSimplified>,
GetShowsEpisodesRequest.Builder> - Returns:
- This instance.
-