From 63004df541aafd06bdd10025ef55ab614f8cd5cc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 29 Mar 2018 10:01:19 +0300 Subject: server: XMPPBot -> CommandsManager --- .../java/com/juick/server/component/PingEvent.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 juick-common/src/main/java/com/juick/server/component/PingEvent.java (limited to 'juick-common/src/main/java') 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; + } +} -- cgit v1.2.3