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

import lombok.Getter;

@Getter
public class BatchImportContractCommandResult {
    private final String resourceId;
    private final int totalSuccess;
    private final int totalFailed;
    private final int totalCount;

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

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