aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-09-19 14:26:26 +0700
committerGravatar Ugnich Anton2013-09-19 14:26:26 +0700
commite46184f115a5648bc6ba4a9e74a504d2b6b2f027 (patch)
treeffd87f1b86f55d2566abdff36d41af4f53b80e47
parent8d1d8d845beb6bc6c99d90722169b77c3dff91e7 (diff)
Message.ReplyTo
-rw-r--r--src/com/juick/json/Message.java6
1 files changed, 6 insertions, 0 deletions
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);
}