add the remaining fields to Movie class
This commit is contained in:
Generated
+27
@@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="JsonSchemaMappingsProjectConfiguration">
|
||||||
|
<state>
|
||||||
|
<map>
|
||||||
|
<entry key="No JSON schema">
|
||||||
|
<value>
|
||||||
|
<SchemaInfo>
|
||||||
|
<option name="ignoredFile" value="true" />
|
||||||
|
<option name="name" value="No JSON schema" />
|
||||||
|
<option name="relativePathToSchema" value="" />
|
||||||
|
<option name="applicationDefined" value="true" />
|
||||||
|
<option name="patterns">
|
||||||
|
<list>
|
||||||
|
<Item>
|
||||||
|
<option name="path" value="file://$PROJECT_DIR$/src/main/java/movie/apis/som.json" />
|
||||||
|
</Item>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
<option name="isIgnoredFile" value="true" />
|
||||||
|
</SchemaInfo>
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</map>
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -6,6 +6,7 @@ import java.util.List;
|
|||||||
* Model class representing a movie
|
* Model class representing a movie
|
||||||
* Fields: id, title, genres, images
|
* Fields: id, title, genres, images
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Movie {
|
public class Movie {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
@@ -15,8 +16,25 @@ 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 director;
|
||||||
|
private String actors;
|
||||||
|
private String awards;
|
||||||
|
private String imdb_id;
|
||||||
|
private String imdb_votes;
|
||||||
|
private String metascore;
|
||||||
|
private String plot;
|
||||||
|
private String rated;
|
||||||
|
private String released;
|
||||||
|
private String runtime;
|
||||||
|
private String type;
|
||||||
|
private String writer;
|
||||||
|
private String poster;
|
||||||
|
|
||||||
|
public Movie(Long id, String title, List<String> genres, List<String> images, String year,
|
||||||
|
String imdb_rating, String country, String director, String actors, String awards,
|
||||||
|
String imdb_id, String imdb_votes, String metascore, String plot, String rated,
|
||||||
|
String released, String runtime, String type, String writer, String poster) {
|
||||||
|
|
||||||
public Movie(Long id, String title, List<String> genres, List<String> images, String year, String imdb_rating, String country) {
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.genres = genres;
|
this.genres = genres;
|
||||||
@@ -24,6 +42,20 @@ public class Movie {
|
|||||||
this.year = year;
|
this.year = year;
|
||||||
this.imdb_rating = imdb_rating;
|
this.imdb_rating = imdb_rating;
|
||||||
this.country = country;
|
this.country = country;
|
||||||
|
this.director = director;
|
||||||
|
this.actors = actors;
|
||||||
|
this.awards = awards;
|
||||||
|
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;
|
||||||
|
this.poster = poster;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Movie(Long id, String title) {
|
public Movie(Long id, String title) {
|
||||||
@@ -86,4 +118,57 @@ public class Movie {
|
|||||||
public void setCountry(String country) {
|
public void setCountry(String country) {
|
||||||
this.country = country;
|
this.country = country;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDirector() { return director; }
|
||||||
|
|
||||||
|
public void setDirector(String director) { this.director = director; }
|
||||||
|
|
||||||
|
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 getImdb_id() { return imdb_id; }
|
||||||
|
|
||||||
|
public void setImdb_id(String imdb_id) { this.imdb_id = imdb_id; }
|
||||||
|
|
||||||
|
public String getImdb_votes() { return imdb_votes; }
|
||||||
|
|
||||||
|
public void setImdb_votes(String imdb_votes) { this.imdb_votes = imdb_votes; }
|
||||||
|
|
||||||
|
public String getMetascore() { return metascore; }
|
||||||
|
|
||||||
|
public void setMetascore(String 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; }
|
||||||
|
|
||||||
|
public String getPoster() { return poster; }
|
||||||
|
|
||||||
|
public void setPoster(String poster) { this.poster = poster; }
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user