package com.bcxin.tenant.domain.events;

import com.bcxin.Infrastructures.events.DomainEventAbstract;
import com.bcxin.tenant.domain.entities.TenantUserEntity;

public class TenantUserCreatedEvent extends DomainEventAbstract<TenantUserEntity> {
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param data
     */
    public TenantUserCreatedEvent(TenantUserEntity data) {
        super(data);
    }

    public static TenantUserCreatedEvent create(TenantUserEntity tenantUser) {
        return new TenantUserCreatedEvent(tenantUser);
    }
}
