aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 76f2995a..d030402a 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 06299610..245f0c07 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 536ac241..aa5e733c 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 b93d0e76..3bf67a67 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 15a88a32..8c279376 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;