public class MediaSearchOptions extends Object
Modifier and Type | Field and Description |
---|---|
protected CountryCode |
country |
protected String |
imdbId |
protected Locale |
language |
protected String |
query |
protected int |
tmdbId |
protected MediaType |
type |
protected int |
year |
Constructor and Description |
---|
MediaSearchOptions(MediaType type) |
MediaSearchOptions(MediaType type,
String query) |
Modifier and Type | Method and Description |
---|---|
CountryCode |
getCountry()
Get the CountryCode for the search
|
String |
getImdbId()
Get the IMDB Id
|
Locale |
getLanguage()
Get the language for the search
|
MediaType |
getMediaType()
Get the media type for this options
|
String |
getQuery()
Get the search query
|
int |
getTmdbId()
Get the TMDB Id
|
int |
getYear()
Get the year
|
void |
setCountry(CountryCode country)
Set the CountryCode for the search
|
void |
setImdbId(String imdbId)
Set the IMDB Id
|
void |
setLanguage(Locale language)
Set the language for the search
|
void |
setQuery(String query)
Set the search query
|
void |
setTmdbId(int tmdbId)
Set the TMDB Id
|
void |
setYear(int year)
Set the year
|
String |
toString() |
protected MediaType type
protected String query
protected int year
protected String imdbId
protected int tmdbId
protected Locale language
protected CountryCode country
public MediaSearchOptions(MediaType type)
public MediaType getMediaType()
public String getQuery()
public void setQuery(String query)
query
- the search querypublic int getYear()
public void setYear(int year)
year
- the yearpublic String getImdbId()
public void setImdbId(String imdbId)
imdbId
- the IMDB Idpublic int getTmdbId()
public void setTmdbId(int tmdbId)
tmdbId
- the TMDB Idpublic Locale getLanguage()
public void setLanguage(Locale language)
language
- a locale for the right languagepublic CountryCode getCountry()
public void setCountry(CountryCode country)
country
- the CountryCodeCopyright © 2012–2017 tinyMediaManager. All rights reserved.