aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/component/SystemEvent.java
blob: 11a108609bf43e1375103444dd7869cff7fdfda8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.juick.service.component;

import com.juick.Message;
import com.juick.User;
import com.juick.server.api.SystemActivity;
import org.springframework.context.ApplicationEvent;

import java.util.List;

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

    public SystemActivity getActivity() {
        return activity;
    }
}