NotificationEvent.java 558 Bytes
package com.ecommerce.notification.event;

import com.ecommerce.notification.model.dto.NotificationRequest;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class NotificationEvent extends ApplicationEvent {
    private final NotificationRequest request;

    public NotificationEvent(Object source, NotificationRequest request) {
        super(source);
        this.request = request;
    }

    public NotificationEvent(NotificationRequest request) {
        super(request);
        this.request = request;
    }
}