Class OMDb
java.lang.Object
com.amilesend.omdb.client.OMDb
The Open Movie Database client.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newOMDbwith the provided API key.OMDb(String apiKey, @NonNull OmdbConnection connection) Creates a newOMDbwith the provided connection and API key.Creates a nweOMDbwith the provided API key and user agent. -
Method Summary
Modifier and TypeMethodDescriptiongetEpisode(@NonNull GetEpisodeBasedRequest request) Gets a TV episode for a request by either its series title or IMDB identifier.getMovie(@NonNull GetMovieBasedRequest request) Gets a movie for a request by either its title or IMDB identifier.getSeason(@NonNull GetSeasonBasedRequest request) Gets a TV season for a request by either its title or IMDB identifier.getSeries(@NonNull GetSeriesBasedRequest request) Gets a TV series for a request by either its title or IMDB identifier.search(@NonNull SearchMovieRequest request) Searches for movies.search(@NonNull SearchSeriesRequest request) Searches for TV series.
-
Field Details
-
USER_AGENT
- See Also:
-
API_URL
- See Also:
-
-
Constructor Details
-
OMDb
Creates a newOMDbwith the provided API key.- Parameters:
apiKey- the API key
-
OMDb
-
OMDb
Creates a newOMDbwith the provided connection and API key.- Parameters:
apiKey- the API keyconnection- the underlying connection
-
-
Method Details
-
getMovie
Gets a movie for a request by either its title or IMDB identifier.- Parameters:
request- the request- Returns:
- the movie
- See Also:
-
getSeries
Gets a TV series for a request by either its title or IMDB identifier.- Parameters:
request- the request- Returns:
- the series
- See Also:
-
getSeason
Gets a TV season for a request by either its title or IMDB identifier.- Parameters:
request- the request- Returns:
- the season
- See Also:
-
getEpisode
Gets a TV episode for a request by either its series title or IMDB identifier.- Parameters:
request- the request- Returns:
- the episode
- See Also:
-
search
Searches for movies.- Parameters:
request- the request- Returns:
- the response containing the list of movies
-
search
Searches for TV series.- Parameters:
request- the request- Returns:
- the response containing the list of TV series.
-