package com.bcxin.tenant.domain.events;

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

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

    public static DepartmentCreatedEvent create(DepartmentEntity department) {
        return new DepartmentCreatedEvent(department);
    }
}