package eu.alfred.recommendationengine.model;
/**
* Created by tobias on 2/1/16.
*/
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
/**
* Created by Tobias on 27/01/2016.
*/
@Document(collection = "Eventrating")
public class Eventrating {
@Field("_id")
private String _id;
@Field("userId")
private String userId;
//Boolean value indicates whether the user accepts the recommendation
@Field("accepted")
private boolean accepted;
//Rating for the event based on numbers from 1(Very good) - 6 (Very bad)
@Field("rating")
private int rating;
@Field("eventId")
private String eventId;
public Eventrating(boolean accepted, int rating, String eventId,String userId)
{
super();
this.accepted = accepted;
this.rating = rating;
this.eventId = eventId;
this.userId = userId;
}
public Eventrating()
{
super();
}
public int getRating() {
return rating;
}
public void setRating(int rating) {
this.rating = rating;
}
public boolean isAccepted() {
return accepted;
}
public void setAccepted(boolean accepted) {
this.accepted = accepted;
}
public String getEventId() {
return eventId;
}
public void setEventId(String eventId) {
this.eventId = eventId;
}
public String get_id() {
return _id;
}
public void set_id(String _id) {
this._id = _id;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
}