From 80b5a6b69654b85bbafa811119f0c08a0bc1e172 Mon Sep 17 00:00:00 2001 From: Saeed Jamali Date: Tue, 28 Apr 2026 19:11:14 +0330 Subject: [PATCH] Implement Movie.java class-add all getters and setters + constructor method --- src/main/java/movie/apis/Movie.java | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/main/java/movie/apis/Movie.java b/src/main/java/movie/apis/Movie.java index 969774a..8de231f 100644 --- a/src/main/java/movie/apis/Movie.java +++ b/src/main/java/movie/apis/Movie.java @@ -16,9 +16,81 @@ public class Movie { private String imdb_rating; private String country; + public Movie(Long id, String title, List genres, List 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; + } + // TODO: Create a constructor with all fields + public Movie(Long id, String title) { + this.id = id; + this.title = title; + } // TODO: Create a simple constructor with id and title only + 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 getGenres() { + return genres; + } + + public void setGenres(List genres) { + this.genres = genres; + } + + public List getImages() { + return images; + } + + public void setImages(List images) { + this.images = images; + } + + public String getYear() { + return year; + } + + public void setYear(String year) { + this.year = year; + } + + public String getImdb_rating() { + return imdb_rating; + } + + public void setImdb_rating(String imdb_rating) { + this.imdb_rating = imdb_rating; + } + + public String getCountry() { + return country; + } + + public void setCountry(String country) { + this.country = country; + } + + // TODO: Create getters and setters for all fields } \ No newline at end of file