package studycave.studycaverestservice.model.test.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import studycave.studycaverestservice.model.test.question.Question;

import java.sql.Date;
import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class TestEditDTO {

    private Long id;
    private String title;
    private String owner;
    @JsonIgnore
    private long idOwner;
    @JsonIgnore
    @JsonProperty("add_date")
    private Date addDate;
    @JsonIgnore
    @JsonProperty("edit_date")
    private Date editDate;
    @ApiModelProperty(value = "Default value for note", required = true,example = "public")
    private String permission;

    @JsonIgnore
    private Long grade;
    @JsonProperty("body")
    List<Question> questions;

    private Boolean help;

}
