package org.raddatz.familienarchiv.document.transcription;

import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Positive;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.raddatz.familienarchiv.document.transcription.PersonMention;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CreateTranscriptionBlockDTO {
    @Min(0)
    private int pageNumber;
    @Min(0)
    private double x;
    @Min(0)
    private double y;
    @Positive
    private double width;
    @Positive
    private double height;
    private String text;
    private String label;

    @Valid
    @Builder.Default
    private List<PersonMention> mentionedPersons = new ArrayList<>();
}
