package com.iqser.red.service.persistence.management.v1.processor.dataexchange;

import com.iqser.red.service.persistence.service.v1.api.shared.model.FileExchangeExportRequest;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExportDownloadMessage {

    @Builder.Default
    private Type type = Type.DOSSIER_TEMPLATE;

    private String userId;
    private String dossierTemplateId;
    private String storageId;

    private FileExchangeExportRequest fileExchangeExportRequest; // null for DOSSIER_TEMPLATE request

    public enum Type {
        DOSSIER_TEMPLATE,
        FILE_EXCHANGE
    }

}
