Update Alternative Titles

This commit is contained in:
Stuart Boston
2018-04-02 21:41:55 +01:00
parent 998eb06b69
commit 4203dc55a5
3 changed files with 34 additions and 2 deletions
@@ -35,6 +35,8 @@ public class AlternativeTitle implements Serializable {
private String country;
@JsonProperty("title")
private String title;
@JsonProperty("type")
private String type;
public String getCountry() {
return country;
@@ -52,6 +54,14 @@ public class AlternativeTitle implements Serializable {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof AlternativeTitle) {
@@ -59,6 +69,7 @@ public class AlternativeTitle implements Serializable {
return new EqualsBuilder()
.append(country, other.country)
.append(title, other.title)
.append(type, other.type)
.isEquals();
} else {
return false;
@@ -70,6 +81,7 @@ public class AlternativeTitle implements Serializable {
return new HashCodeBuilder()
.append(country)
.append(title)
.append(type)
.toHashCode();
}
}
@@ -19,6 +19,7 @@
*/
package com.omertron.themoviedbapi.model.movie;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.omertron.themoviedbapi.model.AbstractIdName;
import java.io.Serializable;
@@ -30,5 +31,25 @@ import java.io.Serializable;
public class ProductionCompany extends AbstractIdName implements Serializable {
private static final long serialVersionUID = 100L;
// Nothing to override from the base class.
@JsonProperty("logo_path")
private String logoPath;
@JsonProperty("origin_country")
private String originCountry;
public String getLogoPath() {
return logoPath;
}
public void setLogoPath(String logoPath) {
this.logoPath = logoPath;
}
public String getOriginCountry() {
return originCountry;
}
public void setOriginCountry(String originCountry) {
this.originCountry = originCountry;
}
}
@@ -343,7 +343,6 @@ public class TmdbMoviesTest extends AbstractTests {
}
}
/**
* Test of getMovieReviews method, of class TmdbMovies.
*