aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/server/component
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-29 10:01:19 +0300
committerGravatar Vitaly Takmazov2018-03-29 10:01:34 +0300
commit63004df541aafd06bdd10025ef55ab614f8cd5cc (patch)
tree7aef76f01c943e1a4cc281231cdd12d8e61b69b2 /juick-common/src/main/java/com/juick/server/component
parent8372395b016f2285a4c531f6cd8b766e60f25f64 (diff)
server: XMPPBot -> CommandsManager
Diffstat (limited to 'juick-common/src/main/java/com/juick/server/component')
-rw-r--r--juick-common/src/main/java/com/juick/server/component/PingEvent.java21
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;
+ }
+}