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:
  • Constructor Details

  • 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

      public Copyright[] getCopyrights()
      Get the copyright statements of the show.
      Returns:
      An array of Copyright objects.
    • 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 Paging object containing EpisodeSimplified objects.
    • getExternalUrls

      public ExternalUrl getExternalUrls()
      Get the external URLs of the show.
      Example: Spotify-URL
      Returns:
      An ExternalUrl object.
    • 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 Image objects.
    • 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 null in 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: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      public Show.Builder 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.
      Returns:
      A builder object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object