Added a method to return a single country

master
Omertron 15 years ago
parent ce52629e8c
commit f4f64b5962

@ -54,6 +54,18 @@ public class MovieDB extends ModelTools {
private List<Person> people = new ArrayList<Person>(); private List<Person> people = new ArrayList<Person>();
private List<Artwork> artwork = new ArrayList<Artwork>(); private List<Artwork> artwork = new ArrayList<Artwork>();
/**
* Just return the first country
* @return
*/
public String getCountry() {
if (!countries.isEmpty()) {
Country country = countries.get(0);
return country.getName();
}
return UNKNOWN;
}
public String getPopularity() { public String getPopularity() {
return popularity; return popularity;
} }

Loading…
Cancel
Save