diff options
Diffstat (limited to 'juick-core/src/main')
-rw-r--r-- | juick-core/src/main/java/com/juick/Message.java | 14 |
1 files changed, 11 insertions, 3 deletions
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; + } } |