Class Show
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Show
- All Implemented Interfaces:
Serializable, IModelObject, IShow
Retrieve information about
Show objects by building instances from this class.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class for buildingShowinstances.static final classJsonUtil class for buildingShowinstances.Nested classes/interfaces inherited from interface IModelObject
IModelObject.IJsonUtil<T> -
Constructor Summary
ConstructorsConstructorDescriptionShow(Show.Builder builder) Creates a new Show object with the specified builder. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder for building an instance of a model object.booleanGet the copyright statements of the show.Get a description of the show.Get a list of the show’s episodes.Check whether the show is explicit or not.Check whether the show is hosted outside of Spotify's CDN.Get the external URLs of the show.getHref()Get the full Spotify Web API endpoint URL of the show.getId()Get the Spotify ID of the show.Image[]Get the cover art for the show in various sizes, widest first.String[]Get a list of the languages used in the show, identified by their ISO 639 code.Get the media type of the show.getName()Get the name of the show.getType()Get the model object type.getUri()Get the Spotify URI of the show.inthashCode()toString()Returns a String representation of this model object in the style:
-
Constructor Details
-
Show
Creates a new Show object with the specified builder.- Parameters:
builder- the builder containing show configuration
-
-
Method Details
-
getCopyrights
Get the copyright statements of the show.- Specified by:
getCopyrightsin interfaceIShow- Returns:
- An array of
Copyrightobjects.
-
getDescription
Get a description of the show.- Specified by:
getDescriptionin interfaceIShow- Returns:
- The description of the show.
-
getExplicit
Check whether the show is explicit or not.- Specified by:
getExplicitin interfaceIShow- Returns:
- Whether or not the show has explicit content (
true= yes it does;false= no it does not OR unknown).
-
getEpisodes
Get a list of the show’s episodes.- Returns:
- A
Pagingobject containingEpisodeSimplifiedobjects.
-
getExternalUrls
Get the external URLs of the show.
Example: Spotify-URL- Specified by:
getExternalUrlsin interfaceIShow- Returns:
- An
ExternalUrlobject.
-
getHref
-
getId
Get the Spotify ID of the show.- Specified by:
getIdin interfaceIShow- Returns:
- A Spotify show ID.
-
getImages
-
getExternallyHosted
Check whether the show is hosted outside of Spotify's CDN.- Specified by:
getExternallyHostedin interfaceIShow- Returns:
- True if the show is hosted outside of Spotify’s CDN. Might be
nullin some cases.
-
getLanguages
Get a list of the languages used in the show, identified by their ISO 639 code.- Specified by:
getLanguagesin interfaceIShow- Returns:
- An array of ISO 3166-1 alpha-2 country codes.
-
getMediaType
Get the media type of the show.- Specified by:
getMediaTypein interfaceIShow- Returns:
- The media type of the show.
-
getName
-
getType
Get the model object type. In this case "show".- Specified by:
getTypein interfaceIShow- Returns:
- A
ModelObjectType.
-
getUri
Get the Spotify URI of the show.- Specified by:
getUriin interfaceIShow- Returns:
- Spotify show 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
-