package tech.easyflow.ai.node.filegeneration;

/**
 * 文档导出结果。
 *
 * @author Codex
 * @since 2026-04-18
 */
public class FileGenerationResult {
    private final String fileName;
    private final String targetFormat;
    private final String contentType;
    private final byte[] bytes;
    private final long size;

    public FileGenerationResult(String fileName, String targetFormat, String contentType, byte[] bytes) {
        this.fileName = fileName;
        this.targetFormat = targetFormat;
        this.contentType = contentType;
        this.bytes = bytes;
        this.size = bytes == null ? 0L : bytes.length;
    }

    public String getFileName() {
        return fileName;
    }

    public String getTargetFormat() {
        return targetFormat;
    }

    public String getContentType() {
        return contentType;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public long getSize() {
        return size;
    }
}
