package com.knecon.fforesight.service.layoutparser.processor.model.image;

import java.awt.geom.Rectangle2D;

import com.iqser.red.service.redaction.v1.server.model.document.nodes.ImageType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@Data
@AllArgsConstructor
@RequiredArgsConstructor
public class ClassifiedImage {

    @NonNull
    private Rectangle2D position;
    @NonNull
    private ImageType imageType;
    private boolean sourceByAi;
    private boolean isAppendedToSection;
    private boolean hasTransparency;
    private int page;
    private String representation;


    public ClassifiedImage(@NonNull Rectangle2D position, @NonNull ImageType imageType, boolean hasTransparency, int page, String representation) {

        this.position = position;
        this.imageType = imageType;
        this.hasTransparency = hasTransparency;
        this.page = page;
        this.representation = representation;
    }

}
