Class Show
- java.lang.Object
-
- se.michaelthelin.spotify.model_objects.AbstractModelObject
-
- se.michaelthelin.spotify.model_objects.specification.Show
-
- All Implemented Interfaces:
Serializable,IModelObject
public class Show extends AbstractModelObject
Retrieve information about Show objects by building instances from this class.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShow.BuilderBuilder class for buildingShowinstances.static classShow.JsonUtilJsonUtil class for buildingShowinstances.-
Nested classes/interfaces inherited from interface se.michaelthelin.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Constructor Summary
Constructors Constructor Description Show(Show.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Show.Builderbuilder()Create a builder for building an instance of a model object.booleanequals(Object o)com.neovisionaries.i18n.CountryCode[]getAvailableMarkets()Get a list of the countries in which the show can be played.Copyright[]getCopyrights()Get the copyright statements of the show.StringgetDescription()Get a description of the show.Paging<EpisodeSimplified>getEpisodes()Get a list of the show’s episodes.BooleangetExplicit()Check whether the show is explicit or not.BooleangetExternallyHosted()Check whether the show is hosted outside of Spotify's CDN.ExternalUrlgetExternalUrls()Get the external URLs of the show.StringgetHref()Get the full Spotify Web API endpoint URL of the show.StringgetId()Get the Spotify ID of the show.Image[]getImages()Get the cover art for the show in various sizes, widest first.String[]getLanguages()Get a list of the languages used in the show, identified by their ISO 639 code.StringgetMediaType()Get the media type of the show.StringgetName()Get the name of the show.StringgetPublisher()Get the publisher of the show.ModelObjectTypegetType()Get the model object type.StringgetUri()Get the Spotify URI of the show.inthashCode()StringtoString()Returns a String representation of this model object in the style:
-
-
-
Constructor Detail
-
Show
public Show(Show.Builder builder)
-
-
Method Detail
-
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
public Copyright[] getCopyrights()
Get the copyright statements of the show.- Returns:
- An array of
Copyrightobjects.
-
getDescription
public String getDescription()
Get a description of the show.- Returns:
- The description of the show.
-
getExplicit
public Boolean 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).
-
getEpisodes
public Paging<EpisodeSimplified> getEpisodes()
Get a list of the show’s episodes.- Returns:
- A
Pagingobject containingEpisodeSimplifiedobjects.
-
getExternalUrls
public ExternalUrl getExternalUrls()
Get the external URLs of the show.
Example: Spotify-URL- Returns:
- An
ExternalUrlobject.
-
getHref
public String 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
public String getId()
Get the Spotify ID of the show.- Returns:
- A Spotify show ID.
-
getImages
public Image[] getImages()
Get the cover art for the show in various sizes, widest first.- Returns:
- An array of
Imageobjects.
-
getExternallyHosted
public Boolean 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
nullin some cases.
-
getLanguages
public String[] 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
public String getMediaType()
Get the media type of the show.- Returns:
- The media type of the show.
-
getName
public String getName()
Get the name of the show.- Returns:
- The name of the show.
-
getPublisher
public String getPublisher()
Get the publisher of the show.- Returns:
- The publisher of the show.
-
getType
public ModelObjectType getType()
Get the model object type. In this case "show".- Returns:
- A
ModelObjectType.
-
getUri
public String getUri()
Get the Spotify URI of the show.- Returns:
- Spotify show URI.
-
toString
public String 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
public Show.Builder 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.- Returns:
- A builder object.
-
-