the movie project

This commit is contained in:
2026-04-29 23:02:38 +03:30
parent 5473658dc8
commit b56fcd2171
4 changed files with 159 additions and 35 deletions
+73 -7
View File
@@ -10,15 +10,81 @@ public class Movie {
private Long id;
private String title;
private List<Genre> genres;
private String images;
private List<String> genres;
private List<String> images;
private String year;
private String imdbRating;
private String imdb_rating;
private String country;
// TODO: Create a constructor with all fields
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;
}
}
// TODO: Create a simple constructor with id and title only
// TODO: Create getters and setters for all fields
}