From e46184f115a5648bc6ba4a9e74a504d2b6b2f027 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 19 Sep 2013 14:26:26 +0700 Subject: Message.ReplyTo --- src/com/juick/json/Message.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/juick/json/Message.java b/src/com/juick/json/Message.java index 18cc375e..70beda88 100644 --- a/src/com/juick/json/Message.java +++ b/src/com/juick/json/Message.java @@ -37,6 +37,9 @@ public class Message { if (json.has("rid")) { jmsg.RID = json.getInt("rid"); } + if (json.has("replyto")) { + jmsg.ReplyTo = json.getInt("replyto"); + } jmsg.Text = json.getString("body").replace(""", "\""); jmsg.User = com.juick.json.User.parseJSON(json.getJSONObject("user")); @@ -78,6 +81,9 @@ public class Message { if (msg.RID > 0) { json.put("rid", msg.RID); } + if (msg.ReplyTo > 0) { + json.put("replyto", msg.ReplyTo); + } if (msg.Text != null) { json.put("body", msg.Text); } -- cgit v1.2.3