Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a573288ff |
@@ -14,7 +14,7 @@ public class Movie
|
|||||||
|
|
||||||
private String imdb_votes;
|
private String imdb_votes;
|
||||||
private String director;
|
private String director;
|
||||||
private List<String> actors;
|
private String actors;
|
||||||
private String runtime;
|
private String runtime;
|
||||||
private String rated;
|
private String rated;
|
||||||
private String released;
|
private String released;
|
||||||
@@ -136,25 +136,16 @@ public class Movie
|
|||||||
this.director = director;
|
this.director = director;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getActors()
|
public String getActors() {return actors;}
|
||||||
{
|
|
||||||
return actors;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setActors(List<String> actors)
|
public void setActors(String actors) {this.actors = actors;}
|
||||||
{
|
|
||||||
this.actors = actors;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRuntime()
|
public String getRuntime()
|
||||||
{
|
{
|
||||||
return runtime;
|
return runtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRuntime(String runtime)
|
public void setRuntime(String runtime) {this.runtime = runtime;}
|
||||||
{
|
|
||||||
this.runtime = runtime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRated()
|
public String getRated()
|
||||||
{
|
{
|
||||||
@@ -171,10 +162,7 @@ public class Movie
|
|||||||
return released;
|
return released;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReleased(String released)
|
public void setReleased(String released) {this.released = released;}
|
||||||
{
|
|
||||||
this.released = released;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPlot()
|
public String getPlot()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -176,13 +176,9 @@ public class MovieService
|
|||||||
System.out.println("======================================================================");
|
System.out.println("======================================================================");
|
||||||
System.out.println("Rating: " + movie.getImdb_rating() + "/10 | Votes: " + movie.getImdb_votes());
|
System.out.println("Rating: " + movie.getImdb_rating() + "/10 | Votes: " + movie.getImdb_votes());
|
||||||
System.out.println("Director: " + movie.getDirector());
|
System.out.println("Director: " + movie.getDirector());
|
||||||
|
System.out.println("Cast: " + movie.getActors());
|
||||||
String cast = (movie.getActors() != null) ? String.join(", ", movie.getActors()) : "";
|
|
||||||
System.out.println("Cast: " + cast);
|
|
||||||
|
|
||||||
String genresText = (movie.getGenres() != null) ? String.join(", ", movie.getGenres()) : "";
|
String genresText = (movie.getGenres() != null) ? String.join(", ", movie.getGenres()) : "";
|
||||||
System.out.println("Genre: " + genresText);
|
System.out.println("Genre: " + genresText);
|
||||||
|
|
||||||
System.out.println("Runtime: " + movie.getRuntime() + " | Rated: " + movie.getRated());
|
System.out.println("Runtime: " + movie.getRuntime() + " | Rated: " + movie.getRated());
|
||||||
System.out.println("Country: " + movie.getCountry() + " | Released: " + movie.getReleased());
|
System.out.println("Country: " + movie.getCountry() + " | Released: " + movie.getReleased());
|
||||||
System.out.println("Plot: " + movie.getPlot());
|
System.out.println("Plot: " + movie.getPlot());
|
||||||
|
|||||||
Reference in New Issue
Block a user