aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/activities/UndoFollowEvent.java
blob: fa162b2e9ab6b3b58cfcd0f5300d11f52bb946c8 (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
27
package com.juick.service.activities;

import com.juick.server.api.activity.model.activities.Follow;
import org.springframework.context.ApplicationEvent;

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

    public String getActor() {
        return actor;
    }

    public Follow getFollowRequest() {
        return followRequest;
    }
}