From 8b29dc19a288cf50246af0a3834d45e07da51642 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Dec 2016 23:01:22 +0300 Subject: juick-core: fix replies serialization --- juick-core/src/main/java/com/juick/Message.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'juick-core/src/main/java') diff --git a/juick-core/src/main/java/com/juick/Message.java b/juick-core/src/main/java/com/juick/Message.java index d3f28e22..0bb75c57 100644 --- a/juick-core/src/main/java/com/juick/Message.java +++ b/juick-core/src/main/java/com/juick/Message.java @@ -54,8 +54,7 @@ public class Message implements Comparable { @JsonIgnore @XmlTransient public boolean VisitorCanComment = true; - @XmlTransient - public int Replies = 0; + private int replies = 0; public String RepliesBy = null; private String attachmentType; @XmlTransient @@ -86,7 +85,7 @@ public class Message implements Comparable { FriendsOnly = msg.FriendsOnly; ReadOnly = msg.ReadOnly; Hidden = msg.Hidden; - Replies = msg.Replies; + setReplies(msg.getReplies()); attachmentType = msg.attachmentType; photo = msg.photo; Video = msg.Video; @@ -328,4 +327,13 @@ public class Message implements Comparable { public void setAttachmentType(String attachmentType) { this.attachmentType = attachmentType; } + + @XmlTransient + public int getReplies() { + return replies; + } + + public void setReplies(int replies) { + this.replies = replies; + } } -- cgit v1.2.3