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 --- src/test/java/com/juick/json/MessageSerializer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java/com/juick/json') diff --git a/src/test/java/com/juick/json/MessageSerializer.java b/src/test/java/com/juick/json/MessageSerializer.java index 38596a1a..b49c991a 100644 --- a/src/test/java/com/juick/json/MessageSerializer.java +++ b/src/test/java/com/juick/json/MessageSerializer.java @@ -76,7 +76,7 @@ public class MessageSerializer extends JSONSerializer { } if (json.has("replies")) { - jmsg.Replies = json.getInt("replies"); + jmsg.setReplies(json.getInt("replies")); } if (json.has("photo")) { @@ -123,8 +123,8 @@ public class MessageSerializer extends JSONSerializer { if (msg.getTags() != null && msg.getTags().size() > 0) { json.put("tags", new JSONArray(msg.getTags().stream().map(Tag::getName).collect(Collectors.toList()))); } - if (msg.Replies > 0) { - json.put("replies", msg.Replies); + if (msg.getReplies() > 0) { + json.put("replies", msg.getReplies()); } if (msg.Place != null) { json.put("place", placeSerializer.serialize(msg.Place)); -- cgit v1.2.3