Class Review

java.lang.Object
moblima.entities.Review

public class Review extends Object
The type Review.
  • Field Details

    • MIN_RATING

      public static final int MIN_RATING
      The constant MIN_RATING.
      See Also:
    • MAX_RATING

      public static final int MAX_RATING
      The constant MAX_RATING.
      See Also:
  • Constructor Details

    • Review

      public Review(String id, int movieId, String review, int rating, String authorName, String authorId)
      Instantiates a new Review.
      Parameters:
      id - the id
      movieId - the movie id
      review - the review
      rating - the rating
      authorName - the author name
      authorId - the author id
    • Review

      public Review(Review cloneReview)
      Instantiates a new Review.
      Parameters:
      cloneReview - the clone review
  • Method Details

    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • setId

      public void setId(String id)
      Sets id.
      Parameters:
      id - the id
    • getMovieId

      public int getMovieId()
      Gets movie id.
      Returns:
      the movie id
    • setMovieId

      public void setMovieId(int movieId)
      Sets movie id.
      Parameters:
      movieId - the movie id
    • getReview

      public String getReview()
      Gets review.
      Returns:
      the review
    • setReview

      public void setReview(String review)
      Sets review.
      Parameters:
      review - the review
    • getRating

      public int getRating()
      Gets rating.
      Returns:
      the rating
    • setRating

      public void setRating(int rating)
      Sets rating.
      Parameters:
      rating - the rating
    • getAuthorName

      public String getAuthorName()
      Gets author name.
      Returns:
      the author name
    • setAuthorName

      public void setAuthorName(String authorName)
      Sets author name.
      Parameters:
      authorName - the author name
    • getAuthorId

      public String getAuthorId()
      Gets author id.
      Returns:
      the author id
    • setAuthorId

      public void setAuthorId(String authorId)
      Sets author id.
      Parameters:
      authorId - the author id
    • toString

      public String toString()
      Overrides:
      toString in class Object