1 |
49863
|
tsampikos.
|
package eu.dnetlib.uoaadmintools.entities;
|
2 |
|
|
|
3 |
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4 |
|
|
|
5 |
|
|
import org.springframework.data.annotation.Id;
|
6 |
|
|
|
7 |
|
|
import java.util.Date;
|
8 |
|
|
import java.util.List;
|
9 |
|
|
|
10 |
|
|
public class QuestionResponse {
|
11 |
|
|
|
12 |
|
|
@Id
|
13 |
|
|
@JsonProperty("_id")
|
14 |
|
|
private String id;
|
15 |
|
|
|
16 |
|
|
private String question;
|
17 |
|
|
private String answer;
|
18 |
|
|
private Date date = new Date();
|
19 |
|
|
private boolean isActive = true;
|
20 |
|
|
private Float weight;
|
21 |
|
|
private int hitCount = 0;
|
22 |
|
|
private List<Topic> topics;
|
23 |
|
|
|
24 |
|
|
public QuestionResponse() {
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
public QuestionResponse(Question question) {
|
28 |
|
|
this.id = question.getId();
|
29 |
|
|
this.question = question.getQuestion();
|
30 |
|
|
this.answer = question.getAnswer();
|
31 |
|
|
this.date = question.getDate();
|
32 |
|
|
this.isActive = question.getIsActive();
|
33 |
|
|
this.weight = question.getWeight();
|
34 |
|
|
this.hitCount = question.getHitCount();
|
35 |
|
|
}
|
36 |
|
|
|
37 |
|
|
public String getId() {
|
38 |
|
|
return id;
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
public void setId(String id) {
|
42 |
|
|
this.id = id;
|
43 |
|
|
}
|
44 |
|
|
|
45 |
|
|
public String getQuestion() {
|
46 |
|
|
return question;
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
public void setQuestion(String question) {
|
50 |
|
|
this.question = question;
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
public String getAnswer() {
|
54 |
|
|
return answer;
|
55 |
|
|
}
|
56 |
|
|
|
57 |
|
|
public void setAnswer(String answer) {
|
58 |
|
|
this.answer = answer;
|
59 |
|
|
}
|
60 |
|
|
|
61 |
|
|
public Date getDate() {
|
62 |
|
|
return date;
|
63 |
|
|
}
|
64 |
|
|
|
65 |
|
|
public void setDate(Date date) {
|
66 |
|
|
this.date = date;
|
67 |
|
|
}
|
68 |
|
|
|
69 |
|
|
public boolean getIsActive() {
|
70 |
|
|
return isActive;
|
71 |
|
|
}
|
72 |
|
|
|
73 |
|
|
public void setIsActive(boolean isActive) {
|
74 |
|
|
this.isActive = isActive;
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
public Float getWeight() {
|
78 |
|
|
return weight;
|
79 |
|
|
}
|
80 |
|
|
|
81 |
|
|
public void setWeight(Float weight) {
|
82 |
|
|
this.weight = weight;
|
83 |
|
|
}
|
84 |
|
|
|
85 |
|
|
public int getHitCount() {
|
86 |
|
|
return hitCount;
|
87 |
|
|
}
|
88 |
|
|
|
89 |
|
|
public void setHitCount(int hitCount) {
|
90 |
|
|
this.hitCount = hitCount;
|
91 |
|
|
}
|
92 |
|
|
|
93 |
|
|
public List<Topic> getTopics() {
|
94 |
|
|
return topics;
|
95 |
|
|
}
|
96 |
|
|
|
97 |
|
|
public void setTopics(List<Topic> topics) {
|
98 |
|
|
this.topics = topics;
|
99 |
|
|
}
|
100 |
|
|
}
|