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<Genre> genres;
|
|
private String images;
|
|
private String year;
|
|
private String imdbRating;
|
|
private String country;
|
|
|
|
public Movie(Long id, String title, List<Genre> genres, String images, String year, String imdbRating, String country)
|
|
{
|
|
this.id = id;
|
|
this.title = title;
|
|
this.genres = genres;
|
|
this.images = images;
|
|
this.year = year;
|
|
this.imdbRating = imdbRating;
|
|
this.country = country;
|
|
}
|
|
|
|
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 getTitle() { return title; }
|
|
|
|
public void setTitle(String title) { this.title = title; }
|
|
|
|
public List<Genre> getGenres() { return genres; }
|
|
|
|
public void setGenres(List<Genre> genres) { this.genres = genres; }
|
|
|
|
public String getImages() { return images; }
|
|
|
|
public void setImages(String images) { this.images = images; }
|
|
|
|
public String getYear() { return year; }
|
|
|
|
public void setYear(String year) { this.year = year; }
|
|
|
|
public String getImdbRating() { return imdbRating; }
|
|
|
|
public void setImdbRating(String imdbRating) { this.imdbRating = imdbRating; }
|
|
|
|
public String getCountry() { return country; }
|
|
|
|
public void setCountry(String country) { this.country = country; }
|
|
} |