Class Audiobook

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Audiobook
All Implemented Interfaces:
Serializable, IModelObject

public class Audiobook extends AbstractModelObject
Retrieve information about Audiobook objects by building instances from this class.
See Also:
  • Method Details

    • getAuthors

      public Author[] getAuthors()
      Get the author(s) for the audiobook.
      Returns:
      An array of Author objects.
    • getAvailableMarkets

      public String[] getAvailableMarkets()
      Get a list of the countries in which the audiobook can be played.
      Returns:
      An array of ISO 3166-1 alpha-2 country codes.
    • getCopyrights

      public Copyright[] getCopyrights()
      Get the copyright statements of the audiobook.
      Returns:
      An array of Copyright objects.
    • getDescription

      public String getDescription()
      Get a description of the audiobook. HTML tags are stripped away from this field.
      Returns:
      The description of the audiobook.
    • getHtmlDescription

      public String getHtmlDescription()
      Get a description of the audiobook. This field may contain HTML tags.
      Returns:
      The HTML description of the audiobook.
    • getEdition

      public String getEdition()
      Get the edition of the audiobook.
      Returns:
      The edition of the audiobook.
    • getExplicit

      public Boolean getExplicit()
      Check whether the audiobook is explicit or not.
      Returns:
      Whether or not the audiobook has explicit content.
    • getExternalUrls

      public ExternalUrl getExternalUrls()
      Get the external URLs of the audiobook.
      Returns:
      An ExternalUrl object.
    • getHref

      public String getHref()
      Get the full Spotify Web API endpoint URL of the audiobook.
      Returns:
      A link to the Web API endpoint providing full details of the audiobook.
    • getId

      public String getId()
      Get the Spotify ID of the audiobook.
      Returns:
      A Spotify audiobook ID.
    • getImages

      public Image[] getImages()
      Get the cover art for the audiobook in various sizes, widest first.
      Returns:
      An array of Image objects.
    • getLanguages

      public String[] getLanguages()
      Get a list of the languages used in the audiobook.
      Returns:
      An array of ISO 639 language codes.
    • getMediaType

      public String getMediaType()
      Get the media type of the audiobook.
      Returns:
      The media type of the audiobook.
    • getName

      public String getName()
      Get the name of the audiobook.
      Returns:
      The name of the audiobook.
    • getNarrators

      public Narrator[] getNarrators()
      Get the narrator(s) for the audiobook.
      Returns:
      An array of Narrator objects.
    • getPublisher

      public String getPublisher()
      Get the publisher of the audiobook.
      Returns:
      The publisher of the audiobook.
    • getType

      public ModelObjectType getType()
      Get the model object type. In this case "audiobook".
      Returns:
      A ModelObjectType.
    • getUri

      public String getUri()
      Get the Spotify URI of the audiobook.
      Returns:
      Spotify audiobook URI.
    • getTotalChapters

      public Integer getTotalChapters()
      Get the number of chapters in this audiobook.
      Returns:
      The number of chapters in this audiobook.
    • getChapters

      public Paging<ChapterSimplified> getChapters()
      Get the chapters of the audiobook.
      Returns:
      A Paging object containing ChapterSimplified objects.
    • 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 Audiobook.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