package com.bcxin.tenant.domain.events;

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

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

    public static DepartmentUpdatedEvent create(DepartmentEntity data) {
        return new DepartmentUpdatedEvent(data);
    }
}
