package com.knecon.fforesight.service.layoutparser.internal.api.queue;

import java.util.Map;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;

@Builder
@Schema(description = "Object containing information about the layout parsing.")
public record LayoutParsingFinishedEvent(
        @Schema(description = "General purpose identifier. It is returned exactly the same way it is inserted with the LayoutParsingRequest.")
        Map<String, String> identifier,//
        @Schema(description = "The duration of a single layout parsing in ms.")
        long duration,//
        @Schema(description = "The number of pages of the parsed document.")
        int numberOfPages,//
        @Schema(description = "A general message. It contains some information useful for a developer, like the paths where the files are stored. Not meant to be machine readable.")
        String message) {

}
