package online.wesal.wesal.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

public class PuzzleAttemptRequest {
    
    @NotNull
    @Min(1)
    @Max(6)
    private Integer attempts;
    
    @NotNull
    private Boolean solved;
    
    public PuzzleAttemptRequest() {}
    
    public PuzzleAttemptRequest(Integer attempts, Boolean solved) {
        this.attempts = attempts;
        this.solved = solved;
    }
    
    public Integer getAttempts() {
        return attempts;
    }
    
    public void setAttempts(Integer attempts) {
        this.attempts = attempts;
    }
    
    public Boolean getSolved() {
        return solved;
    }
    
    public void setSolved(Boolean solved) {
        this.solved = solved;
    }
}