package studycave.studycaverestservice.model.test.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
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.ArrayList;
import java.util.List;

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

    private Long id;
    private String title;
    @JsonIgnore
    private Long idOwner;
    @JsonProperty("owner")
    private String owner;
    @JsonProperty("add_date")
    private Date addDate;
    @JsonProperty("edit_date")
    private Date editDate;

    private String permission;
    private int grade;

    private Long dateFrom;
    private Long dateTo;

    private Boolean attempted = null;

    private Boolean isGroupOwner = false;

    @JsonProperty("body")
    List<Question> questions = new ArrayList<>();

}
