aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-10 20:10:19 +0300
committerGravatar Vitaly Takmazov2016-01-10 20:10:19 +0300
commitee0e13e7243abecf242236c224551774195524a3 (patch)
tree9625e93a3e3aa48c889efe0bb57be7895daaf8f1 /src/main/java/com/juick
parent331363c89936be9df126d10e16107b99a18877d1 (diff)
refactoring, part 2
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/json/MessageSerializer.java6
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("&quot;", "\"");
+ jmsg.setText(json.getString("body").replace("&quot;", "\""));
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);