package com.juick.service.activities;

import com.juick.Message;
import org.springframework.context.ApplicationEvent;

public class DeleteMessageEvent extends ApplicationEvent {
    private Message message;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public DeleteMessageEvent(Object source, Message message) {
        super(source);
        this.message = message;
    }

    public Message getMessage() {
        return message;
    }
}