package com.bcxin.tenant.open.domains.services.commands;

import com.bcxin.tenant.open.domains.entities.DeviceCommunicatedLogDetailEntity;
import com.bcxin.tenant.open.infrastructures.commands.CommandAbstract;
import lombok.Getter;

import java.util.Collection;

@Getter
public class CreateDeviceCommunicatedLogCommand extends CommandAbstract {
    private final Collection<DeviceCommunicatedLogDetailEntity> deviceCommunicatedLogDetails;

    public CreateDeviceCommunicatedLogCommand(Collection<DeviceCommunicatedLogDetailEntity> deviceCommunicatedLogDetails) {
        this.deviceCommunicatedLogDetails = deviceCommunicatedLogDetails;
    }

    public static CreateDeviceCommunicatedLogCommand create(Collection<DeviceCommunicatedLogDetailEntity> deviceCommunicatedLogDetails) {
        return new CreateDeviceCommunicatedLogCommand(deviceCommunicatedLogDetails);
    }
}
