finish project
This commit is contained in:
@@ -6,6 +6,9 @@ import java.util.List;
|
||||
* Model class representing a movie
|
||||
* Fields: id, title, genres, images
|
||||
*/
|
||||
|
||||
|
||||
|
||||
public class Movie {
|
||||
|
||||
private Long id;
|
||||
@@ -16,9 +19,46 @@ public class Movie {
|
||||
private String imdb_rating;
|
||||
private String country;
|
||||
|
||||
// TODO: Create a constructor with all fields
|
||||
public void Movie(Long id , String title, List<String> genres, List<String> images,
|
||||
String year ,String imdb_rating , String country){
|
||||
this.id = id;
|
||||
this.title=title;
|
||||
this.genres = genres;
|
||||
this.images = images;
|
||||
this.year =year;
|
||||
this.imdb_rating = imdb_rating;
|
||||
this.country = country;
|
||||
|
||||
}
|
||||
|
||||
public void Movie(Long id , String title){
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public void setId(Long id){this.id = id;}
|
||||
public Long getId(){return this.id;}
|
||||
|
||||
public void setTitle(String title){this.title = title;}
|
||||
public String getTitle(){return this.title;}
|
||||
|
||||
public void setGenres(List<String> genres){this.genres = genres;}
|
||||
public List<String> getGenres(){return this.genres;}
|
||||
|
||||
public void setImages(List<String> images){this.images = images;}
|
||||
public List<String> getImages(){return this.images;}
|
||||
|
||||
public void setYear(String year){this.year = year;}
|
||||
public String getYear(){return this.year;}
|
||||
|
||||
public void setImdb_rating(String imdb_rating){this.imdb_rating = imdb_rating;}
|
||||
public String getImdb_rating(){return this.imdb_rating;}
|
||||
|
||||
public void setCountry(String country){this.country = country;}
|
||||
public String getCountry(){return this.country;}
|
||||
|
||||
|
||||
|
||||
|
||||
// TODO: Create a simple constructor with id and title only
|
||||
|
||||
// TODO: Create getters and setters for all fields
|
||||
}
|
||||
Reference in New Issue
Block a user