Class ShowSimplified
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.ShowSimplified
- All Implemented Interfaces:
Serializable
,IModelObject
,ISearchModelObject
Retrieve information about
simplified Show objects by building instances from this class.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for buildingShowSimplified
instances.static final class
JsonUtil class for buildingShowSimplified
instances.Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder for building an instance of a model object.boolean
com.neovisionaries.i18n.CountryCode[]
Get a list of the countries in which the show can be played.Get the copyright statements of the show.Get a description of the show.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.Get the publisher of the show.getType()
Get the model object type.getUri()
Get the Spotify URI of the show.int
hashCode()
toString()
Returns a String representation of this model object in the style:
-
Constructor Details
-
ShowSimplified
-
-
Method Details
-
getAvailableMarkets
public com.neovisionaries.i18n.CountryCode[] getAvailableMarkets()Get a list of the countries in which the show can be played.- Returns:
- An array of ISO 3166-1 alpha-2 country * codes.
-
getCopyrights
Get the copyright statements of the show.- Returns:
- An array of
Copyright
objects.
-
getDescription
Get a description of the show.- Returns:
- The description of the show.
-
getExplicit
Check whether the show is explicit or not.- Returns:
- Whether or not the show has explicit content (
true
= yes it does;false
= no it does not OR unknown).
-
getExternalUrls
Get the external URLs of the show.
Example: Spotify-URL- Returns:
- An
ExternalUrl
object.
-
getHref
Get the full Spotify Web API endpoint URL of the show.- Returns:
- A link to the Web API endpoint providing full details of the show.
-
getId
Get the Spotify ID of the show.- Returns:
- A Spotify show ID.
-
getImages
Get the cover art for the show in various sizes, widest first.- Returns:
- An array of
Image
objects.
-
getExternallyHosted
Check whether the show is hosted outside of Spotify's CDN.- Returns:
- True if the show is hosted outside of Spotify’s CDN. Might be
null
in some cases.
-
getLanguages
Get a list of the languages used in the show, identified by their ISO 639 code.- Returns:
- An array of ISO 3166-1 alpha-2 country codes.
-
getMediaType
Get the media type of the show.- Returns:
- The media type of the show.
-
getName
Get the name of the show.- Returns:
- The name of the show.
-
getPublisher
Get the publisher of the show.- Returns:
- The publisher of the show.
-
getType
Get the model object type. In this case "show".- Returns:
- A
ModelObjectType
.
-
getUri
Get the Spotify URI of the show.- Returns:
- Spotify show URI.
-
toString
Description copied from class:AbstractModelObject
Returns a String representation of this model object in the style:ModelObject(attr1=value1, attr2=value2, ...)
- Specified by:
toString
in classAbstractModelObject
-
builder
Description copied from interface:IModelObject
Create 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:
builder
in interfaceIModelObject
- Returns:
- A builder object.
-
equals
-
hashCode
public int hashCode()
-