Update PersonFind
add KnownForDepartment
This commit is contained in:
@@ -42,6 +42,8 @@ public class PersonFind extends PersonBasic implements Serializable {
|
||||
@JsonProperty("popularity")
|
||||
private Float popularity;
|
||||
private List<? extends MediaBasic> knownFor;
|
||||
@JsonProperty("known_for_department")
|
||||
private String knownForDepartment;
|
||||
|
||||
public Boolean getAdult() {
|
||||
return adult;
|
||||
@@ -70,8 +72,10 @@ public class PersonFind extends PersonBasic implements Serializable {
|
||||
defaultImpl = MediaBasic.class
|
||||
)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = MovieBasic.class, name = "movie"),
|
||||
@JsonSubTypes.Type(value = TVBasic.class, name = "tv"),
|
||||
@JsonSubTypes.Type(value = MovieBasic.class, name = "movie")
|
||||
,
|
||||
@JsonSubTypes.Type(value = TVBasic.class, name = "tv")
|
||||
,
|
||||
@JsonSubTypes.Type(value = TVEpisodeBasic.class, name = "episode")
|
||||
})
|
||||
@JsonSetter("known_for")
|
||||
@@ -79,4 +83,12 @@ public class PersonFind extends PersonBasic implements Serializable {
|
||||
this.knownFor = knownFor;
|
||||
}
|
||||
|
||||
public String getKnownForDepartment() {
|
||||
return knownForDepartment;
|
||||
}
|
||||
|
||||
public void setKnownForDepartment(String knownForDepartment) {
|
||||
this.knownForDepartment = knownForDepartment;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user