Download this file

Eventrating.java    85 lines (66 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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;
}
}