Class GetByTitleRequestBase

java.lang.Object
com.amilesend.omdb.client.model.GetByTitleRequestBase
All Implemented Interfaces:
QueryParameterBasedRequest
Direct Known Subclasses:
GetEpisodeByTitleRequest, GetMovieByTitleRequest, GetSeasonByTitleRequest, GetSeriesByTitleRequest

public abstract class GetByTitleRequestBase extends Object implements QueryParameterBasedRequest
Request to fetch media information based on the title.
See Also:
  • Method Details

    • populateQueryParameters

      public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder)
      Description copied from interface: QueryParameterBasedRequest
      Helper method to populate query parameters of a HttpUrl.Builder.
      Specified by:
      populateQueryParameters in interface QueryParameterBasedRequest
      Parameters:
      urlBuilder - the HttpUrl.Builder instance
      Returns:
      the HttpUrl.Builder instance
    • getTitle

      public String getTitle()
      The title of the content to search for.
    • getYear

      public Integer getYear()
      The year of the movie release.
    • getPlot

      public Plot getPlot()
      The plot format (i.e., short or full; default is short).
      See Also:
    • 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