1 |
57029
|
argiro.kok
|
package eu.dnetlib.data.claims.entity;
|
2 |
53200
|
konstantin
|
|
3 |
|
|
import java.util.Date;
|
4 |
|
|
|
5 |
|
|
public class Notification implements OpenaireEntity {
|
6 |
|
|
private String openaireId;
|
7 |
|
|
private String openaireName;
|
8 |
|
|
private String userMail;
|
9 |
|
|
private int frequency;
|
10 |
|
|
private boolean notify;
|
11 |
|
|
private Date last_interaction_date;
|
12 |
|
|
|
13 |
|
|
public Notification() {}
|
14 |
|
|
|
15 |
|
|
public Notification(String openaireId, String openaireName, String userMail, int frequency, boolean notify) {
|
16 |
|
|
this.openaireId = openaireId;
|
17 |
|
|
this.openaireName = openaireName;
|
18 |
|
|
this.userMail = userMail;
|
19 |
|
|
this.frequency = frequency;
|
20 |
|
|
this.notify = notify;
|
21 |
|
|
}
|
22 |
|
|
|
23 |
|
|
public String getOpenaireId() {
|
24 |
|
|
return openaireId;
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
public void setOpenaireId(String openaireId) {
|
28 |
|
|
this.openaireId = openaireId;
|
29 |
|
|
}
|
30 |
|
|
|
31 |
|
|
public String getOpenaireName() {
|
32 |
|
|
return openaireName;
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
public void setOpenaireName(String openaireName) {
|
36 |
|
|
this.openaireName = openaireName;
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
public String getUserMail() { return userMail; }
|
40 |
|
|
|
41 |
|
|
public void setUserMail(String userMail) { this.userMail = userMail; }
|
42 |
|
|
|
43 |
|
|
public int getFrequency() { return frequency; }
|
44 |
|
|
|
45 |
|
|
public void setFrequency(int frequency) { this.frequency = frequency; }
|
46 |
|
|
|
47 |
|
|
public boolean isNotify() { return notify; }
|
48 |
|
|
|
49 |
|
|
public void setNotify(boolean notify) { this.notify = notify; }
|
50 |
|
|
|
51 |
|
|
public Date getDate() {
|
52 |
|
|
return last_interaction_date;
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
public void setDate(Date last_interaction_date) {
|
56 |
|
|
this.last_interaction_date = last_interaction_date;
|
57 |
|
|
}
|
58 |
62369
|
argiro.kok
|
|
59 |
|
|
@Override
|
60 |
|
|
public String toString() {
|
61 |
|
|
return "Notification{" +
|
62 |
|
|
"openaireId='" + openaireId + '\'' +
|
63 |
|
|
", openaireName='" + openaireName + '\'' +
|
64 |
|
|
", userMail='" + userMail + '\'' +
|
65 |
|
|
", frequency=" + frequency +
|
66 |
|
|
", notify=" + notify +
|
67 |
|
|
", last_interaction_date=" + last_interaction_date +
|
68 |
|
|
'}';
|
69 |
|
|
}
|
70 |
53200
|
konstantin
|
}
|