From ee0e13e7243abecf242236c224551774195524a3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Jan 2016 20:10:19 +0300 Subject: refactoring, part 2 --- src/main/java/com/juick/json/MessageSerializer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/juick/json/MessageSerializer.java b/src/main/java/com/juick/json/MessageSerializer.java index 85986415..dccf1b3a 100644 --- a/src/main/java/com/juick/json/MessageSerializer.java +++ b/src/main/java/com/juick/json/MessageSerializer.java @@ -49,7 +49,7 @@ public class MessageSerializer extends JSONSerializer { jmsg.FriendsOnly = json.has("friendsonly"); jmsg.ReadOnly = json.has("readonly"); - jmsg.Text = json.getString("body").replace(""", "\""); + jmsg.setText(json.getString("body").replace(""", "\"")); jmsg.setUser(userSerializer.deserialize(json.getJSONObject("user"))); try { @@ -97,8 +97,8 @@ public class MessageSerializer extends JSONSerializer { if (msg.ReadOnly) { json.put("readonly", 1); } - if (msg.Text != null) { - json.put("body", msg.Text); + if (msg.getText() != null) { + json.put("body", msg.getText()); } if (msg.Timestamp != null) { json.put("timestamp", msg.Timestamp); -- cgit v1.2.3