package com.storycove.dto;

public class FileInfoDto {

    private String fileName;
    private String fileType; // "EPUB" or "PDF"
    private Long fileSize;
    private String extractedTitle;
    private String extractedAuthor;
    private boolean hasMetadata;
    private String error; // If file couldn't be analyzed

    public FileInfoDto() {}

    public FileInfoDto(String fileName, String fileType, Long fileSize) {
        this.fileName = fileName;
        this.fileType = fileType;
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public String getExtractedTitle() {
        return extractedTitle;
    }

    public void setExtractedTitle(String extractedTitle) {
        this.extractedTitle = extractedTitle;
    }

    public String getExtractedAuthor() {
        return extractedAuthor;
    }

    public void setExtractedAuthor(String extractedAuthor) {
        this.extractedAuthor = extractedAuthor;
    }

    public boolean isHasMetadata() {
        return hasMetadata;
    }

    public void setHasMetadata(boolean hasMetadata) {
        this.hasMetadata = hasMetadata;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
