package com.storycove.dto;

import jakarta.validation.constraints.NotNull;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.UUID;

public class PDFImportRequest {

    @NotNull(message = "PDF file is required")
    private MultipartFile pdfFile;

    private UUID authorId;

    private String authorName;

    private UUID seriesId;

    private String seriesName;

    private Double seriesVolume;

    private List<String> tags;

    private Boolean createMissingAuthor = true;

    private Boolean createMissingSeries = true;

    private Boolean extractImages = true;

    public PDFImportRequest() {}

    public MultipartFile getPdfFile() {
        return pdfFile;
    }

    public void setPdfFile(MultipartFile pdfFile) {
        this.pdfFile = pdfFile;
    }

    public UUID getAuthorId() {
        return authorId;
    }

    public void setAuthorId(UUID authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public UUID getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(UUID seriesId) {
        this.seriesId = seriesId;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Double getSeriesVolume() {
        return seriesVolume;
    }

    public void setSeriesVolume(Double seriesVolume) {
        this.seriesVolume = seriesVolume;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public Boolean getCreateMissingAuthor() {
        return createMissingAuthor;
    }

    public void setCreateMissingAuthor(Boolean createMissingAuthor) {
        this.createMissingAuthor = createMissingAuthor;
    }

    public Boolean getCreateMissingSeries() {
        return createMissingSeries;
    }

    public void setCreateMissingSeries(Boolean createMissingSeries) {
        this.createMissingSeries = createMissingSeries;
    }

    public Boolean getExtractImages() {
        return extractImages;
    }

    public void setExtractImages(Boolean extractImages) {
        this.extractImages = extractImages;
    }
}
