add extra fields to Movie.java
This commit is contained in:
@@ -15,7 +15,18 @@ public class Movie {
|
|||||||
private String year;
|
private String year;
|
||||||
private String imdb_rating;
|
private String imdb_rating;
|
||||||
private String country;
|
private String country;
|
||||||
|
private String actors;
|
||||||
|
private String awards;
|
||||||
|
private String director;
|
||||||
|
private String imdb_id;
|
||||||
|
private int imdb_votes;
|
||||||
|
private int metascore;
|
||||||
|
private String plot;
|
||||||
|
private String rated;
|
||||||
|
private String released;
|
||||||
|
private String runtime;
|
||||||
|
private String type;
|
||||||
|
private String writer;
|
||||||
|
|
||||||
public Movie(Long id, String title, List<String> genres, List<String> images,
|
public Movie(Long id, String title, List<String> genres, List<String> images,
|
||||||
String year, String imdb_rating, String country) {
|
String year, String imdb_rating, String country) {
|
||||||
@@ -34,6 +45,29 @@ public class Movie {
|
|||||||
this.title = title;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Movie(Long id, String title, List<String> genres, List<String> images,
|
||||||
|
String year, String imdb_rating, String country, String actors, String awards,
|
||||||
|
String director, String imdb_id, int imdb_votes, int metascore, String plot,
|
||||||
|
String rated, String released, String runtime, String type, String writer) {
|
||||||
|
|
||||||
|
this(id, title, genres, images, year, imdb_rating, country);
|
||||||
|
|
||||||
|
this.actors = actors;
|
||||||
|
this.awards = awards;
|
||||||
|
this.director = director;
|
||||||
|
this.imdb_id = imdb_id;
|
||||||
|
this.imdb_votes = imdb_votes;
|
||||||
|
this.metascore = metascore;
|
||||||
|
this.plot = plot;
|
||||||
|
this.rated = rated;
|
||||||
|
this.released = released;
|
||||||
|
this.runtime = runtime;
|
||||||
|
this.type = type;
|
||||||
|
this.writer = writer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Long getId() {return id;}
|
public Long getId() {return id;}
|
||||||
public void setId(Long id ) {this.id = id;}
|
public void setId(Long id ) {this.id = id;}
|
||||||
|
|
||||||
@@ -55,5 +89,39 @@ public class Movie {
|
|||||||
public String getCountry() {return country;}
|
public String getCountry() {return country;}
|
||||||
public void setCountry(String country) {this.country = country;}
|
public void setCountry(String country) {this.country = country;}
|
||||||
|
|
||||||
|
public String getActors() {return actors;}
|
||||||
|
public void setActors(String actors) {this.actors = actors;}
|
||||||
|
|
||||||
|
public String getAwards() {return awards;}
|
||||||
|
public void setAwards(String awards) {this.awards = awards;}
|
||||||
|
|
||||||
|
public String getDirector() {return director;}
|
||||||
|
public void setDirector(String director) {this.director = director;}
|
||||||
|
|
||||||
|
public String getImdb_id() {return imdb_id;}
|
||||||
|
public void setImdb_id(String imdb_id) {this.imdb_id = imdb_id;}
|
||||||
|
|
||||||
|
public int getImdb_votes() {return imdb_votes;}
|
||||||
|
public void setImdb_votes(int imdb_votes) {this.imdb_votes = imdb_votes;}
|
||||||
|
|
||||||
|
public int getMetascore() {return metascore;}
|
||||||
|
public void setMetascore(int metascore) {this.metascore = metascore;}
|
||||||
|
|
||||||
|
public String getPlot() {return plot;}
|
||||||
|
public void setPlot(String plot) {this.plot = plot;}
|
||||||
|
|
||||||
|
public String getRated() {return rated;}
|
||||||
|
public void setRated(String rated) {this.rated = rated;}
|
||||||
|
|
||||||
|
public String getReleased() {return released;}
|
||||||
|
public void setReleased(String released) {this.released = released;}
|
||||||
|
|
||||||
|
public String getRuntime() {return runtime;}
|
||||||
|
public void setRuntime(String runtime) {this.runtime = runtime;}
|
||||||
|
|
||||||
|
public String getType() {return type;}
|
||||||
|
public void setType(String type) {this.type = type;}
|
||||||
|
|
||||||
|
public String getWriter() {return writer;}
|
||||||
|
public void setWriter(String writer) {this.writer = writer;}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user