aboutsummaryrefslogtreecommitdiff
path: root/juick-core
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-01 23:01:22 +0300
committerGravatar Vitaly Takmazov2016-12-01 23:01:22 +0300
commit8b29dc19a288cf50246af0a3834d45e07da51642 (patch)
treee5cd5f6e7611d002fd5809c3138dbe39f6602583 /juick-core
parentbdd36eb9858d0dccd94827de55e36767095be048 (diff)
juick-core: fix replies serialization
Diffstat (limited to 'juick-core')
-rw-r--r--juick-core/src/main/java/com/juick/Message.java14
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;
+ }
}