diff options
Diffstat (limited to 'juick-common')
-rw-r--r-- | juick-common/src/main/java/com/juick/server/component/PingEvent.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/server/component/PingEvent.java b/juick-common/src/main/java/com/juick/server/component/PingEvent.java new file mode 100644 index 00000000..abda5b85 --- /dev/null +++ b/juick-common/src/main/java/com/juick/server/component/PingEvent.java @@ -0,0 +1,21 @@ +package com.juick.server.component; + +import com.juick.User; +import org.springframework.context.ApplicationEvent; + +public class PingEvent extends ApplicationEvent { + private User pinger; + /** + * Create a new ApplicationEvent. + * + * @param source the object on which the event initially occurred (never {@code null}) + */ + public PingEvent(Object source, User pinger) { + super(source); + this.pinger = pinger; + } + + public User getPinger() { + return pinger; + } +} |