aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-14 17:32:01 +0300
committerGravatar Vitaly Takmazov2016-12-14 17:43:59 +0300
commit9383db80fbf0de88608fe6bfbe5edf62471f4abb (patch)
treef2fc0b8a7a45121a11b494d34d896e99f1a8865a /juick-core/src/main
parent2a597191ba108b5d9b3757aa002ce5c780ac60ad (diff)
juick-core: api objects should live in core
Diffstat (limited to 'juick-core/src/main')
-rw-r--r--juick-core/src/main/java/com/juick/Status.java32
-rw-r--r--juick-core/src/main/java/com/juick/TokensList.java30
2 files changed, 62 insertions, 0 deletions
diff --git a/juick-core/src/main/java/com/juick/Status.java b/juick-core/src/main/java/com/juick/Status.java
new file mode 100644
index 00000000..794f1c9e
--- /dev/null
+++ b/juick-core/src/main/java/com/juick/Status.java
@@ -0,0 +1,32 @@
+package com.juick;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Created by vitalyster on 25.07.2016.
+ */
+public class Status {
+ private final String value;
+
+ public static final Status OK = new Status("ok");
+ public static final Status FAIL = new Status("Fail");
+ public static final Status ERROR = new Status("Error");
+
+ public static Status getStatus(final String stringStatus) {
+ return new Status(stringStatus);
+ }
+
+ private Status(String value) {
+ this.value = value;
+ }
+
+ @JsonProperty("status")
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return "value = " + value;
+ }
+}
diff --git a/juick-core/src/main/java/com/juick/TokensList.java b/juick-core/src/main/java/com/juick/TokensList.java
new file mode 100644
index 00000000..de5158c7
--- /dev/null
+++ b/juick-core/src/main/java/com/juick/TokensList.java
@@ -0,0 +1,30 @@
+package com.juick;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.util.List;
+
+/**
+ * Created by vitalyster on 22.11.2016.
+ */
+public class TokensList {
+ private String type;
+ private List<String> tokens;
+
+ @JsonProperty("type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public List<String> getTokens() {
+ return tokens;
+ }
+
+ public void setTokens(List<String> tokens) {
+ this.tokens = tokens;
+ }
+}