package com.easyagents.document.core.entity;

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

/**
 * 图片结果。
 *
 * @author Codex
 * @since 2026-04-14
 */
public class DocumentImage {

    private Integer pageIndex;
    private String name;
    private String mimeType;
    private String sourcePath;
    private String dataUrl;
    private byte[] content;
    private List<Double> boundingBox = new ArrayList<Double>();
    private List<String> captions = new ArrayList<String>();
    private List<String> footnotes = new ArrayList<String>();

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public String getSourcePath() {
        return sourcePath;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public String getDataUrl() {
        return dataUrl;
    }

    public void setDataUrl(String dataUrl) {
        this.dataUrl = dataUrl;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public List<Double> getBoundingBox() {
        return boundingBox;
    }

    public void setBoundingBox(List<Double> boundingBox) {
        this.boundingBox = boundingBox == null ? new ArrayList<Double>() : boundingBox;
    }

    public List<String> getCaptions() {
        return captions;
    }

    public void setCaptions(List<String> captions) {
        this.captions = captions == null ? new ArrayList<String>() : captions;
    }

    public List<String> getFootnotes() {
        return footnotes;
    }

    public void setFootnotes(List<String> footnotes) {
        this.footnotes = footnotes == null ? new ArrayList<String>() : footnotes;
    }
}
