Update TVSeasonBasic
Add Name and Overview
This commit is contained in:
@@ -35,6 +35,8 @@ public class TVSeasonBasic extends AbstractJsonMapping implements Serializable,
|
||||
|
||||
@JsonProperty("id")
|
||||
private int id = -1;
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("air_date")
|
||||
private String airDate;
|
||||
@JsonProperty("poster_path")
|
||||
@@ -43,6 +45,8 @@ public class TVSeasonBasic extends AbstractJsonMapping implements Serializable,
|
||||
private int seasonNumber;
|
||||
@JsonProperty("episode_count")
|
||||
private int episodeCount = -1;
|
||||
@JsonProperty("overview")
|
||||
private String overview;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
@@ -86,4 +90,20 @@ public class TVSeasonBasic extends AbstractJsonMapping implements Serializable,
|
||||
this.episodeCount = episodeCount;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getOverview() {
|
||||
return overview;
|
||||
}
|
||||
|
||||
public void setOverview(String overview) {
|
||||
this.overview = overview;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,10 +44,6 @@ public class TVSeasonInfo extends TVSeasonBasic implements Serializable, AppendT
|
||||
|
||||
private static final long serialVersionUID = 100L;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("overview")
|
||||
private String overview;
|
||||
@JsonProperty("episodes")
|
||||
private List<TVEpisodeInfo> episodes;
|
||||
// AppendToResponse
|
||||
@@ -59,22 +55,6 @@ public class TVSeasonInfo extends TVSeasonBasic implements Serializable, AppendT
|
||||
private List<Video> videos = Collections.emptyList();
|
||||
|
||||
//<editor-fold defaultstate="collapsed" desc="Getters and Setters">
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getOverview() {
|
||||
return overview;
|
||||
}
|
||||
|
||||
public void setOverview(String overview) {
|
||||
this.overview = overview;
|
||||
}
|
||||
|
||||
public List<TVEpisodeInfo> getEpisodes() {
|
||||
return episodes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user