package com.bcxin.tenant.open.domains.dtos;

import com.bcxin.tenant.open.infrastructures.enums.DispatchDataType;
import lombok.Getter;

import java.util.Collection;

@Getter
public class SyncDataWrapperDTO {
    private final Collection<String> ids;
    private final DispatchDataType dataType;

    private final Object additionalParameter;

    public SyncDataWrapperDTO(Collection<String> ids, DispatchDataType dataType,Object additionalParameter) {
        this.ids = ids;
        this.dataType = dataType;
        this.additionalParameter = additionalParameter;
    }

    public static SyncDataWrapperDTO create(Collection<String> ids, DispatchDataType dataType,Object additionalParameter) {
        return new SyncDataWrapperDTO(ids, dataType,additionalParameter);
    }
}
