aboutsummaryrefslogtreecommitdiff
path: root/server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-13 21:21:45 +0700
committerGravatar Alexander Alexeev2016-11-13 21:21:45 +0700
commit6ba7eb5fe1384ec87cdd0031d185a9b26512a016 (patch)
tree1448ba6c8dda4302e3ad847cb085d49b8b054867 /server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java
parentb75258ee5ed84510579050b5dba1edb904a09dfa (diff)
server core module
Diffstat (limited to 'server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java')
-rw-r--r--server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java b/server-core/src/main/java/com/juick/server/protocol/ProtocolReply.java
new file mode 100644
index 00000000..d9d36a5d
--- /dev/null
+++ b/server-core/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;
+ }
+}