92 lines
1.8 KiB
Java
92 lines
1.8 KiB
Java
package eu.dnetlib.uoaadmintools.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import org.springframework.data.annotation.Id;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
public class TopicResponse {
|
|
|
|
@Id
|
|
@JsonProperty("_id")
|
|
private String id;
|
|
|
|
private String name;
|
|
private String description;
|
|
private Date date = new Date();
|
|
private Float weight;
|
|
private String questionOrder;
|
|
private List<Question> questions;
|
|
|
|
|
|
public TopicResponse() {
|
|
}
|
|
|
|
public TopicResponse(Topic topic) {
|
|
this.id = topic.getId();
|
|
this.name = topic.getName();
|
|
this.description = topic.getDescription();
|
|
this.date = topic.getDate();
|
|
this.weight = topic.getWeight();
|
|
this.questionOrder = topic.getQuestionOrder();
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public Date getDate() {
|
|
return date;
|
|
}
|
|
|
|
public void setDate(Date date) {
|
|
this.date = date;
|
|
}
|
|
|
|
public Float getWeight() {
|
|
return weight;
|
|
}
|
|
|
|
public void setWeight(Float weight) {
|
|
this.weight = weight;
|
|
}
|
|
|
|
public String getQuestionOrder() {
|
|
return questionOrder;
|
|
}
|
|
|
|
public void setQuestionOrder(String questionOrder) {
|
|
this.questionOrder = questionOrder;
|
|
}
|
|
|
|
public List<Question> getQuestions() {
|
|
return questions;
|
|
}
|
|
|
|
public void setQuestions(List<Question> questions) {
|
|
this.questions = questions;
|
|
}
|
|
}
|