Skip to content
Snippets Groups Projects
Review.java 886 B
Newer Older
jrb240's avatar
jrb240 committed
public class Review implements java.io.Serializable{
    private String comment, name, restEventDesignation,eventType;
    private Integer rating;
jrb240's avatar
jrb240 committed

    /**
     * Review object structure
     *
     * @param comment A review comment
     * @param rating A rating
     */

    public Review( String comment, String name, String restEventDesignation, Integer rating, String restOrEvent){
jrb240's avatar
jrb240 committed
        this.name = name;
        this.restEventDesignation = restEventDesignation;
        this.comment = comment;
        this.rating = rating;
jrb240's avatar
jrb240 committed
    }

    public double getRating() {
        return rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String setComment) {
        this.comment = setComment;
    }

    public void changeComment(String newComment){
        this.comment = newComment;
    }
}