aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/Attachment.java4
-rw-r--r--src/main/java/com/juick/Photo.java4
-rw-r--r--src/main/java/com/juick/Reaction.java4
-rw-r--r--src/main/java/com/juick/Tag.java3
-rw-r--r--src/main/java/com/juick/model/Entity.java4
5 files changed, 14 insertions, 5 deletions
diff --git a/src/main/java/com/juick/Attachment.java b/src/main/java/com/juick/Attachment.java
index 76f2995a3..d030402a6 100644
--- a/src/main/java/com/juick/Attachment.java
+++ b/src/main/java/com/juick/Attachment.java
@@ -1,6 +1,8 @@
package com.juick;
-public class Attachment {
+import java.io.Serializable;
+
+public class Attachment implements Serializable {
private String url;
private Integer height;
private Integer width;
diff --git a/src/main/java/com/juick/Photo.java b/src/main/java/com/juick/Photo.java
index 06299610d..245f0c079 100644
--- a/src/main/java/com/juick/Photo.java
+++ b/src/main/java/com/juick/Photo.java
@@ -17,12 +17,14 @@
package com.juick;
+import java.io.Serializable;
+
/**
* Created by vitalyster on 30.11.2016.
*/
// used for compatibility
@Deprecated
-public class Photo {
+public class Photo implements Serializable {
private String small;
private String medium;
private String thumbnail;
diff --git a/src/main/java/com/juick/Reaction.java b/src/main/java/com/juick/Reaction.java
index 536ac2412..aa5e733c1 100644
--- a/src/main/java/com/juick/Reaction.java
+++ b/src/main/java/com/juick/Reaction.java
@@ -2,7 +2,9 @@ package com.juick;
import org.apache.commons.lang3.builder.ToStringBuilder;
-public class Reaction {
+import java.io.Serializable;
+
+public class Reaction implements Serializable {
public static final int LIKE = 1;
diff --git a/src/main/java/com/juick/Tag.java b/src/main/java/com/juick/Tag.java
index b93d0e760..3bf67a671 100644
--- a/src/main/java/com/juick/Tag.java
+++ b/src/main/java/com/juick/Tag.java
@@ -19,6 +19,7 @@ package com.juick;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.xml.bind.annotation.*;
+import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
@@ -27,7 +28,7 @@ import java.util.Objects;
*/
@XmlRootElement(name = "tag", namespace = "http://juick.com/message")
@XmlAccessorType(XmlAccessType.FIELD)
-public class Tag implements Comparable<Tag> {
+public class Tag implements Comparable<Tag>, Serializable {
@XmlValue
private String name;
diff --git a/src/main/java/com/juick/model/Entity.java b/src/main/java/com/juick/model/Entity.java
index 15a88a322..8c2793761 100644
--- a/src/main/java/com/juick/model/Entity.java
+++ b/src/main/java/com/juick/model/Entity.java
@@ -1,6 +1,8 @@
package com.juick.model;
-public class Entity {
+import java.io.Serializable;
+
+public class Entity implements Serializable {
private String type;
private String url;
private String text;