public class ApiUrl extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INT |
static String |
DEFAULT_STRING |
Constructor and Description |
---|
ApiUrl(TheMovieDb tmdb,
String method)
Constructor for the simple API URL method without a sub-method
|
ApiUrl(TheMovieDb tmdb,
String method,
String submethod)
Constructor for the API URL with a sub-method
|
Modifier and Type | Method and Description |
---|---|
URL |
getIdUrl(int movieId)
Create an URL using the movie ID
|
URL |
getIdUrl(int movieId,
String language)
Create an URL using the movie ID and language
|
URL |
getIdUrl(int movieId,
String language,
String country)
Create an URL using the movie ID, language and country code
|
URL |
getIdUrl(String movieId)
Create an URL using the movie ID
|
URL |
getIdUrl(String movieId,
String language)
Create an URL using the movie ID and language
|
URL |
getIdUrl(String movieId,
String language,
String country)
Create an URL using the movie ID, language and country code
|
URL |
getQueryUrl(String query)
Create an URL using the query (string)
|
URL |
getQueryUrl(String query,
String language)
Create an URL using the query (string) and language
|
URL |
getQueryUrl(String query,
String language,
int page)
Create an URL using the query (string), language and page
|
public static final String DEFAULT_STRING
public static final int DEFAULT_INT
public ApiUrl(TheMovieDb tmdb, String method)
method
- public ApiUrl(TheMovieDb tmdb, String method, String submethod)
method
- submethod
- public URL getQueryUrl(String query, String language, int page)
query
- language
- page
- public URL getQueryUrl(String query)
query
- public URL getQueryUrl(String query, String language)
query
- language
- public URL getIdUrl(String movieId, String language, String country)
movieId
- language
- country
- public URL getIdUrl(String movieId, String language)
movieId
- language
- public URL getIdUrl(String movieId)
movieId
- public URL getIdUrl(int movieId, String language, String country)
movieId
- language
- country
- public URL getIdUrl(int movieId, String language)
movieId
- language
- public URL getIdUrl(int movieId)
movieId
- Copyright © 2012. All Rights Reserved.