aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/protocol/ProtocolReply.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-29 15:15:15 +0300
committerGravatar Vitaly Takmazov2016-06-29 15:15:30 +0300
commita6b07685219dee3b48a816e562fdbe93f2419779 (patch)
tree568e5439f37b1429d06a4191904542871e84e5e9 /src/main/java/com/juick/server/protocol/ProtocolReply.java
parent1f96985975abe442d899d38e93a411f963b19921 (diff)
add juick bot protocol WIP
Diffstat (limited to 'src/main/java/com/juick/server/protocol/ProtocolReply.java')
-rw-r--r--src/main/java/com/juick/server/protocol/ProtocolReply.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/protocol/ProtocolReply.java b/src/main/java/com/juick/server/protocol/ProtocolReply.java
new file mode 100644
index 00000000..d9d36a5d
--- /dev/null
+++ b/src/main/java/com/juick/server/protocol/ProtocolReply.java
@@ -0,0 +1,23 @@
+package com.juick.server.protocol;
+
+import java.util.Optional;
+
+/**
+ * Created by vitalyster on 08.04.2016.
+ */
+public class ProtocolReply {
+
+ private Optional<String> json;
+ private String description;
+
+ public ProtocolReply(String text, Optional<String> json) {
+ this.description = text;
+ this.json = json;
+ }
+ public String getDescription() {
+ return description;
+ }
+ public Optional<String> getJson() {
+ return json;
+ }
+}