package de.frigosped.dc.model;

/**
 * Request-Body für POST /api/dc/documents/:parent_id/references
 * {"source_url":"https://...","filename":"AGB.pdf",
 *  "mime_type":"application/pdf","file_base64":"JVBERi0x..."}
 *
 * Legt eine heruntergeladene externe Referenz als neue dc_project_documents-Zeile an.
 */
public class ReferenceCreateRequest {

    private String sourceUrl;
    private String filename;
    private String mimeType;
    private String fileBase64;

    public ReferenceCreateRequest() {}

    public ReferenceCreateRequest(String sourceUrl, String filename,
                                  String mimeType, String fileBase64) {
        this.sourceUrl  = sourceUrl;
        this.filename   = filename;
        this.mimeType   = mimeType;
        this.fileBase64 = fileBase64;
    }

    public String getSourceUrl()             { return sourceUrl; }
    public void setSourceUrl(String v)       { this.sourceUrl = v; }

    public String getFilename()              { return filename; }
    public void setFilename(String v)        { this.filename = v; }

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

    public String getFileBase64()            { return fileBase64; }
    public void setFileBase64(String v)      { this.fileBase64 = v; }
}
