diff --git a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditBasic.java b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditBasic.java index 6eb9a9422..e45f198f2 100644 --- a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditBasic.java +++ b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditBasic.java @@ -27,6 +27,7 @@ import com.omertron.themoviedbapi.enumeration.MediaType; import com.omertron.themoviedbapi.interfaces.Identification; import com.omertron.themoviedbapi.model.AbstractJsonMapping; import java.io.Serializable; +import java.util.List; /** * @author stuart.boston @@ -44,6 +45,20 @@ public class CreditBasic extends AbstractJsonMapping implements Serializable, Id private int id; @JsonProperty("poster_path") private String artworkPath; + @JsonProperty("backdrop_path") + private String backdropPath; + @JsonProperty("genre_ids") + private List genreIds; + @JsonProperty("original_language") + private String originalLanguage; + @JsonProperty("overview") + private String overview; + @JsonProperty("popularity") + private float popularity; + @JsonProperty("vote_average") + private float voteAverage; + @JsonProperty("vote_count") + private int voteCount; //cast @JsonProperty("character") @@ -71,7 +86,7 @@ public class CreditBasic extends AbstractJsonMapping implements Serializable, Id this.mediaType = MediaType.fromString(mediaType); } - public void setMediaType(MediaType mediaType) { + public final void setMediaType(MediaType mediaType) { this.mediaType = mediaType; } @@ -128,4 +143,60 @@ public class CreditBasic extends AbstractJsonMapping implements Serializable, Id setCreditType(CreditType.CREW); } + public String getBackdropPath() { + return backdropPath; + } + + public void setBackdropPath(String backdropPath) { + this.backdropPath = backdropPath; + } + + public List getGenreIds() { + return genreIds; + } + + public void setGenreIds(List genreIds) { + this.genreIds = genreIds; + } + + public String getOriginalLanguage() { + return originalLanguage; + } + + public void setOriginalLanguage(String originalLanguage) { + this.originalLanguage = originalLanguage; + } + + public String getOverview() { + return overview; + } + + public void setOverview(String overview) { + this.overview = overview; + } + + public float getPopularity() { + return popularity; + } + + public void setPopularity(float popularity) { + this.popularity = popularity; + } + + public float getVoteAverage() { + return voteAverage; + } + + public void setVoteAverage(float voteAverage) { + this.voteAverage = voteAverage; + } + + public int getVoteCount() { + return voteCount; + } + + public void setVoteCount(int voteCount) { + this.voteCount = voteCount; + } + } diff --git a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditMovieBasic.java b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditMovieBasic.java index 44b1e3094..850eafd23 100644 --- a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditMovieBasic.java +++ b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditMovieBasic.java @@ -38,6 +38,8 @@ public class CreditMovieBasic extends CreditBasic implements Serializable { private String releaseDate; @JsonProperty("title") private String title; + @JsonProperty("video") + private boolean video; public CreditMovieBasic() { setMediaType(MediaType.MOVIE); @@ -75,4 +77,12 @@ public class CreditMovieBasic extends CreditBasic implements Serializable { this.title = title; } + public boolean isVideo() { + return video; + } + + public void setVideo(boolean video) { + this.video = video; + } + } diff --git a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditTVBasic.java b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditTVBasic.java index 5db27fc00..d8c14e7a3 100644 --- a/src/main/java/com/omertron/themoviedbapi/model/credits/CreditTVBasic.java +++ b/src/main/java/com/omertron/themoviedbapi/model/credits/CreditTVBasic.java @@ -38,6 +38,8 @@ public class CreditTVBasic extends CreditBasic implements Serializable { private String name; @JsonProperty("original_name") private String originalName; + @JsonProperty("origin_country") + private String originCountry; public CreditTVBasic() { setMediaType(MediaType.TV); @@ -75,4 +77,12 @@ public class CreditTVBasic extends CreditBasic implements Serializable { this.originalName = originalName; } + public String getOriginCountry() { + return originCountry; + } + + public void setOriginCountry(String originCountry) { + this.originCountry = originCountry; + } + }