Class MediaBase

java.lang.Object
com.amilesend.omdb.model.type.MediaBase
Direct Known Subclasses:
Episode, Movie, Series

public abstract class MediaBase extends Object
Defines common attributes for media (i.e., movie, TV series).
  • Method Details

    • getRatings

      public List<Rating> getRatings()
      Gets the list of ratings.
      Returns:
      the list of ratings
      See Also:
    • getImdbRating

      public Double getImdbRating()
      Gets the IMDB rating.
      Returns:
      the rating
    • getImdbVotes

      public Integer getImdbVotes()
      Gets the IMDB votes associated with the rating.
      Returns:
      the number of votes
    • getGenres

      public List<String> getGenres()
      Gets the list of genres.
      Returns:
      the list of genres
    • getDirectors

      public List<String> getDirectors()
      Gets the list of directors.
      Returns:
      the list of directors
    • getWriters

      public List<String> getWriters()
      Gets the list of credited writers.
      Returns:
      the list of writers
    • getActors

      public List<String> getActors()
      Gets the list credited actors.
      Returns:
      the list of actors
    • getLanguages

      public List<String> getLanguages()
      Gets the list of languages.
      Returns:
      the list of languages
    • getCountries

      public List<String> getCountries()
      Gets the list of countries.
      Returns:
      the list of countries
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTitle

      public String getTitle()
      The movie title.
    • getYear

      public String getYear()
      The year of release.
    • getRated

      public String getRated()
      The associated rating.
    • getReleased

      public LocalDate getReleased()
      The date of release.
    • getRuntime

      public String getRuntime()
      The runtime.
    • getPlot

      public String getPlot()
      The plot description.
    • getAwards

      public String getAwards()
      The description of received awards.
    • getPoster

      public String getPoster()
      The URL of the movie poster image.
    • getMetascore

      public String getMetascore()
      The metacritic score.
    • getImdbId

      public String getImdbId()
      The IMDB identifier.