package com.bcxin.tenant.domain.services.commands.results;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

@Getter
public class ProcessImportDataCommandResult {
    private final String id;
    private final int totalSuccess;
    private final int totalFailed;
    private final int totalCount;

    public ProcessImportDataCommandResult(String id,int totalCount, int totalSuccess, int totalFailed) {
        this.id = id;
        this.totalFailed = totalFailed;
        this.totalSuccess = totalSuccess;
        this.totalCount = totalCount;
    }

    public static ProcessImportDataCommandResult create(String id,int totalCount, int totalSuccess, int totalFailed) {
        return new ProcessImportDataCommandResult(id, totalCount,totalSuccess, totalFailed);
    }
}
