|
a |
|
b/shared-models/src/main/java/eu/alfred/recommendationengine/model/EventRecommendationResponse.java |
|
|
1 |
package eu.alfred.recommendationengine.model;
|
|
|
2 |
|
|
|
3 |
import eu.alfred.eventmanager.model.Event;
|
|
|
4 |
|
|
|
5 |
import java.util.EnumSet;
|
|
|
6 |
|
|
|
7 |
/**
|
|
|
8 |
* Created by thardes on 20/04/2016.
|
|
|
9 |
*/
|
|
|
10 |
public class EventRecommendationResponse {
|
|
|
11 |
private Event event;
|
|
|
12 |
private EnumSet<RecommendationReason> reasons;
|
|
|
13 |
private int weight;
|
|
|
14 |
|
|
|
15 |
public EventRecommendationResponse(Event event, EnumSet<RecommendationReason> reasons, int weight)
|
|
|
16 |
{
|
|
|
17 |
this.event = event;
|
|
|
18 |
this.reasons = reasons;
|
|
|
19 |
this.weight = weight;
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
public Event getEvent() {
|
|
|
24 |
return event;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public void setEvent(Event event) {
|
|
|
28 |
this.event = event;
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public EnumSet<RecommendationReason> getReasons() {
|
|
|
32 |
return reasons;
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public void setReasons(EnumSet<RecommendationReason> reasons) {
|
|
|
36 |
this.reasons = reasons;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
public int getWeight() {
|
|
|
40 |
return weight;
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
public void setWeight(int weight) {
|
|
|
44 |
this.weight = weight;
|
|
|
45 |
}
|
|
|
46 |
}
|