diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/MovieDB.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/MovieDB.java index 63ef59e2b..d6ccb816b 100644 --- a/themoviedbapi/src/com/moviejukebox/themoviedb/model/MovieDB.java +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/MovieDB.java @@ -27,32 +27,32 @@ import com.moviejukebox.themoviedb.tools.ModelTools; public class MovieDB extends ModelTools { public static String UNKNOWN = "UNKNOWN"; - private String score = UNKNOWN; - private String popularity = UNKNOWN; - private String title = UNKNOWN; - private String type = UNKNOWN; - private String id = UNKNOWN; - private String imdb = UNKNOWN; - private String url = UNKNOWN; - private String overview = UNKNOWN; - private String rating = UNKNOWN; - private String releaseDate = UNKNOWN; - private String runtime = UNKNOWN; - private String budget = UNKNOWN; - private String revenue = UNKNOWN; - private String homepage = UNKNOWN; - private String trailer = UNKNOWN; - private List countries = new ArrayList(); - private List people = new ArrayList(); - private List categories = new ArrayList(); - - public String getScore() { - return score; - } - - public void setScore(String score) { - this.score = score; - } + private String popularity = UNKNOWN; + private String translated = UNKNOWN; + private String adult = UNKNOWN; + private String language = UNKNOWN; + private String title = UNKNOWN; // "name" in the XML + private String originalName = UNKNOWN; // "original_name" in the XML + private String alternativeName = UNKNOWN; // "alternative_name" in the XML + private String type = UNKNOWN; + private String id = UNKNOWN; + private String imdb = UNKNOWN; // "imdb_id" in the XML + private String url = UNKNOWN; + private String overview = UNKNOWN; + private String rating = UNKNOWN; + private String tagline = UNKNOWN; + private String certification = UNKNOWN; + private String releaseDate = UNKNOWN; // "released" in the XML + private String runtime = UNKNOWN; + private String budget = UNKNOWN; + private String revenue = UNKNOWN; + private String homepage = UNKNOWN; + private String trailer = UNKNOWN; + private List categories = new ArrayList(); + private List studios = new ArrayList(); + private List countries = new ArrayList(); + private List people = new ArrayList(); + private List artwork = new ArrayList(); public String getPopularity() { return popularity; @@ -195,4 +195,92 @@ public class MovieDB extends ModelTools { categories.add(category); } } + + public String getTranslated() { + return translated; + } + + public String getAdult() { + return adult; + } + + public String getLanguage() { + return language; + } + + public String getOriginalName() { + return originalName; + } + + public String getAlternativeName() { + return alternativeName; + } + + public String getTagline() { + return tagline; + } + + public String getCertification() { + return certification; + } + + public List getStudios() { + return studios; + } + + public List getCountries() { + return countries; + } + + public List getArtwork() { + return artwork; + } + + public void setTranslated(String translated) { + this.translated = translated; + } + + public void setAdult(String adult) { + this.adult = adult; + } + + public void setLanguage(String language) { + this.language = language; + } + + public void setOriginalName(String originalName) { + this.originalName = originalName; + } + + public void setAlternativeName(String alternativeName) { + this.alternativeName = alternativeName; + } + + public void setTagline(String tagline) { + this.tagline = tagline; + } + + public void setCertification(String certification) { + this.certification = certification; + } + + public void setCategories(List categories) { + this.categories = categories; + } + + public void setStudios(List studios) { + this.studios = studios; + } + + public void setCountries(List countries) { + this.countries = countries; + } + + public void setPeople(List people) { + this.people = people; + } + + public void setArtwork(List artwork) { + this.artwork = artwork; + } } diff --git a/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java new file mode 100644 index 000000000..a1601a08c --- /dev/null +++ b/themoviedbapi/src/com/moviejukebox/themoviedb/model/Studio.java @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2004-2010 YAMJ Members + * http://code.google.com/p/moviejukebox/people/list + * + * Web: http://code.google.com/p/moviejukebox/ + * + * This software is licensed under a Creative Commons License + * See this page: http://code.google.com/p/moviejukebox/wiki/License + * + * For any reuse or distribution, you must make clear to others the + * license terms of this work. + */ + +package com.moviejukebox.themoviedb.model; + +/** + * Studio from the MovieDB.org + * + * @author Stuart.Boston + * + */ +public class Studio { + public String name; + public String url; + public String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } +}