1
|
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 TopicResponse {
|
11
|
|
12
|
@Id
|
13
|
@JsonProperty("_id")
|
14
|
private String id;
|
15
|
|
16
|
private String name;
|
17
|
private String description;
|
18
|
private Date date = new Date();
|
19
|
private Float weight;
|
20
|
private String questionOrder;
|
21
|
private List<Question> questions;
|
22
|
|
23
|
|
24
|
public TopicResponse() {
|
25
|
}
|
26
|
|
27
|
public TopicResponse(Topic topic) {
|
28
|
this.id = topic.getId();
|
29
|
this.name = topic.getName();
|
30
|
this.description = topic.getDescription();
|
31
|
this.date = topic.getDate();
|
32
|
this.weight = topic.getWeight();
|
33
|
this.questionOrder = topic.getQuestionOrder();
|
34
|
}
|
35
|
|
36
|
public String getId() {
|
37
|
return id;
|
38
|
}
|
39
|
|
40
|
public void setId(String id) {
|
41
|
this.id = id;
|
42
|
}
|
43
|
|
44
|
public String getName() {
|
45
|
return name;
|
46
|
}
|
47
|
|
48
|
public void setName(String name) {
|
49
|
this.name = name;
|
50
|
}
|
51
|
|
52
|
public String getDescription() {
|
53
|
return description;
|
54
|
}
|
55
|
|
56
|
public void setDescription(String description) {
|
57
|
this.description = description;
|
58
|
}
|
59
|
|
60
|
public Date getDate() {
|
61
|
return date;
|
62
|
}
|
63
|
|
64
|
public void setDate(Date date) {
|
65
|
this.date = date;
|
66
|
}
|
67
|
|
68
|
public Float getWeight() {
|
69
|
return weight;
|
70
|
}
|
71
|
|
72
|
public void setWeight(Float weight) {
|
73
|
this.weight = weight;
|
74
|
}
|
75
|
|
76
|
public String getQuestionOrder() {
|
77
|
return questionOrder;
|
78
|
}
|
79
|
|
80
|
public void setQuestionOrder(String questionOrder) {
|
81
|
this.questionOrder = questionOrder;
|
82
|
}
|
83
|
|
84
|
public List<Question> getQuestions() {
|
85
|
return questions;
|
86
|
}
|
87
|
|
88
|
public void setQuestions(List<Question> questions) {
|
89
|
this.questions = questions;
|
90
|
}
|
91
|
}
|