64 lines
1.6 KiB
Java
64 lines
1.6 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 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;}
|
|
|
|
|
|
|
|
|
|
|
|
} |