package com.ycwl.basic.integration.questionnaire.dto.questionnaire;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ycwl.basic.integration.questionnaire.dto.question.QuestionResponse;
import com.ycwl.basic.integration.questionnaire.dto.statistics.QuestionnaireStatistics;
import lombok.Data;

import java.util.List;

@Data
public class QuestionnaireResponse {
    
    @JsonProperty("id")
    private Long id;
    
    @JsonProperty("name")
    private String name;
    
    @JsonProperty("description")
    private String description;
    
    @JsonProperty("status")
    private Integer status;
    
    @JsonProperty("statusText")
    private String statusText;
    
    @JsonProperty("createdBy")
    private String createdBy;
    
    @JsonProperty("startTime")
    private String startTime;
    
    @JsonProperty("endTime")
    private String endTime;
    
    @JsonProperty("isAnonymous")
    private Boolean isAnonymous;
    
    @JsonProperty("maxAnswers")
    private Integer maxAnswers;
    
    @JsonProperty("createdAt")
    private String createdAt;
    
    @JsonProperty("updatedAt")
    private String updatedAt;
    
    @JsonProperty("questions")
    private List<QuestionResponse> questions;
    
    @JsonProperty("statistics")
    private QuestionnaireStatistics statistics;
}