* make {info.budget} {info.revenue} {info.popularity} available for easy access

This commit is contained in:
Reinhard Pointner 2015-11-06 06:18:22 +00:00
parent 515812f7d1
commit c56fd45d1f
1 changed files with 24 additions and 0 deletions

View File

@ -568,6 +568,30 @@ public class TMDbClient implements MovieIdentificationService {
return get(MovieProperty.runtime); return get(MovieProperty.runtime);
} }
public Long getBudget() {
try {
return new Long(get(MovieProperty.budget));
} catch (Exception e) {
return null;
}
}
public Long getRevenue() {
try {
return new Long(get(MovieProperty.revenue));
} catch (Exception e) {
return null;
}
}
public Double getPopularity() {
try {
return new Double(get(MovieProperty.popularity));
} catch (Exception e) {
return null;
}
}
public List<String> getGenres() { public List<String> getGenres() {
return unmodifiableList(asList(genres)); return unmodifiableList(asList(genres));
} }