Class Episode
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Episode
- All Implemented Interfaces:
Serializable, IModelObject, IEpisode, IPlaylistItem
Retrieve information about
episode objects by building instances from this class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for buildingEpisodeinstances.static final classJsonUtil class for buildingEpisodeinstances.Nested classes/interfaces inherited from interface IModelObject
IModelObject.IJsonUtil<T> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder for building an instance of a model object.booleanGet a URL to a 30 second preview (MP3 format) of the episode.Get a description of the episode.Get the duration of the episode in milliseconds.Check whether the episode is explicit or not.Check whether the episode is hosted outside of Spotify's CDN.Get the external URLs of the episode.getHref()Get the full Spotify Web API endpoint URL of the episode.Get a description of the episode which may contain HTML tags.getId()Get the Spotify ID of the episode.Image[]Get the cover art for the episode in various sizes, widest first.Check whether the episode is playable in the given market.String[]Get a list of the languages used in the episode, identified by their ISO 639 code.getName()Get the name of the episode.Get the date the episode was first released, for example "1981-12-15".Get the precision with which the release date is known.Get the user’s most recent position in the episode.getShow()Get the show on which the episode belongs.getType()Get the model object type.getUri()Get the Spotify URI of the episode.inthashCode()toString()Returns a String representation of this model object in the style:
-
Method Details
-
getAudioPreviewUrl
Get a URL to a 30 second preview (MP3 format) of the episode.nullif not available.- Specified by:
getAudioPreviewUrlin interfaceIEpisode- Returns:
- A URL to an audio preview.
-
getDescription
Get a description of the episode.- Specified by:
getDescriptionin interfaceIEpisode- Returns:
- The description of the episode.
-
getHtmlDescription
Get a description of the episode which may contain HTML tags.- Returns:
- The HTML description of the episode.
-
getDurationMs
Get the duration of the episode in milliseconds.- Specified by:
getDurationMsin interfaceIPlaylistItem- Returns:
- The length of the episode in milliseconds.
-
getExplicit
Check whether the episode is explicit or not.- Specified by:
getExplicitin interfaceIEpisode- Returns:
- Whether or not the episode has explicit content (
true= yes it does;false= no it does not OR unknown).
-
getExternalUrls
Get the external URLs of the episode.
Example: Spotify-URL- Specified by:
getExternalUrlsin interfaceIPlaylistItem- Returns:
- An
ExternalUrlobject.
-
getHref
Get the full Spotify Web API endpoint URL of the episode.- Specified by:
getHrefin interfaceIPlaylistItem- Returns:
- A link to the Web API endpoint providing full details of the episode.
-
getId
Get the Spotify ID of the episode.- Specified by:
getIdin interfaceIPlaylistItem- Returns:
- A Spotify episode ID.
-
getImages
-
getExternallyHosted
Check whether the episode is hosted outside of Spotify's CDN.- Specified by:
getExternallyHostedin interfaceIEpisode- Returns:
- True if the episode is hosted outside of Spotify’s CDN.
-
getIsPlayable
Check whether the episode is playable in the given market.- Specified by:
getIsPlayablein interfaceIEpisode- Returns:
- True if the episode is playable in the given market. Otherwise false.
-
getLanguages
Get a list of the languages used in the episode, identified by their ISO 639 code.- Specified by:
getLanguagesin interfaceIEpisode- Returns:
- An array of ISO 3166-1 alpha-2 country codes.
-
getName
Get the name of the episode.- Specified by:
getNamein interfaceIPlaylistItem- Returns:
- The name of the episode.
-
getReleaseDate
Get the date the episode was first released, for example "1981-12-15". Depending on the precision, it might be shown as "1981" or "1981-12".- Specified by:
getReleaseDatein interfaceIEpisode- Returns:
- The release date of the episode.
-
getReleaseDatePrecision
Get the precision with which the release date is known.- Specified by:
getReleaseDatePrecisionin interfaceIEpisode- Returns:
- A
ReleaseDatePrecisionobject.
-
getResumePoint
Get the user’s most recent position in the episode. Set if the supplied access token is a user token and has the scopeuser-read-playback-position.- Specified by:
getResumePointin interfaceIEpisode- Returns:
- A
ResumePointobject.
-
getShow
Get the show on which the episode belongs.- Returns:
- A
Showobject on which the episode belongs.
-
getType
Get the model object type. In this case "episode".- Specified by:
getTypein interfaceIPlaylistItem- Returns:
- A
ModelObjectType.
-
getUri
Get the Spotify URI of the episode.- Specified by:
getUriin interfaceIPlaylistItem- Returns:
- Spotify episode URI.
-
toString
Description copied from class:AbstractModelObjectReturns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)- Specified by:
toStringin classAbstractModelObject
-
builder
Description copied from interface:IModelObjectCreate a builder for building an instance of a model object.
The type of the builder and its methods depend on its corresponding implementation.- Specified by:
builderin interfaceIModelObject- Returns:
- A builder object.
-
equals
-
hashCode
-