package studycave.studycaverestservice.model.test.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import studycave.studycaverestservice.model.test.verifier.QuestionVerifyDeserializer;

import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@JsonDeserialize(using = QuestionVerifyDeserializer.class)
public class QuestionVerifyDTO {

    @ApiModelProperty(position = 1)
    Long id;
    @ApiModelProperty(position = 2)
    String type;

    @ApiModelProperty(position = 3)
    List<AnswerVerifyDTO> answers;

}
