91 lines
1.7 KiB
Java
91 lines
1.7 KiB
Java
package movie.apis;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Model class representing a movie
|
|
* Fields: id, title, genres, images
|
|
*/
|
|
public class Movie {
|
|
|
|
private Long id;
|
|
private String title;
|
|
private List<String> genres;
|
|
private List<String> images;
|
|
private String year;
|
|
private String imdb_rating;
|
|
private String country;
|
|
|
|
public Movie(Long id, String title, String year, List<String> genres, List<String> images, String country, String imdb_rating){
|
|
this.id = id;
|
|
this.country = country;
|
|
this.title = title;
|
|
this.year = year;
|
|
this.images = images;
|
|
this.imdb_rating = this.imdb_rating;
|
|
}
|
|
|
|
public Movie(Long id, String title) {
|
|
this.id = id;
|
|
this.title = title;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getYear(){
|
|
return year;
|
|
}
|
|
|
|
public void setYear(String year){
|
|
this.year = year;
|
|
}
|
|
|
|
public String getCountry(){
|
|
return country;
|
|
}
|
|
|
|
public void setCountry(String country){
|
|
this.country = country;
|
|
}
|
|
|
|
public String getImdb_rating(){
|
|
return imdb_rating;
|
|
}
|
|
|
|
public void setImdb_rating(String imdb_rating){
|
|
this.imdb_rating = imdb_rating;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public List<String> getImages() {
|
|
return images;
|
|
}
|
|
|
|
public void setImages(List<String> images) {
|
|
this.images = images;
|
|
}
|
|
|
|
public List<String> getGenres(){
|
|
return genres;
|
|
}
|
|
|
|
public void setGenres(List<String> genres){
|
|
this.genres = genres;
|
|
}
|
|
}
|
|
|
|
|