diff options
author | Vitaly Takmazov | 2016-01-10 20:10:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-10 20:10:19 +0300 |
commit | ee0e13e7243abecf242236c224551774195524a3 (patch) | |
tree | 9625e93a3e3aa48c889efe0bb57be7895daaf8f1 /src/main/java/com/juick | |
parent | 331363c89936be9df126d10e16107b99a18877d1 (diff) |
refactoring, part 2
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/json/MessageSerializer.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<Message> { 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<Message> { 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); |