aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-11-04 14:19:11 +0300
committerGravatar Vitaly Takmazov2015-11-04 14:19:11 +0300
commitc3d949e11a4380a2353fca0abf12292285fde02c (patch)
tree3046cf5c2bc83e803fecc8ec6f400f216b536201 /src/main/java
parentc98f2e946babbec6b0174e175f49e9cd353223e2 (diff)
initial gson support
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/Message.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java
index 4db2620e..c87bf445 100644
--- a/src/main/java/com/juick/Message.java
+++ b/src/main/java/com/juick/Message.java
@@ -17,6 +17,8 @@
*/
package com.juick;
+import com.google.gson.annotations.SerializedName;
+
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
@@ -27,8 +29,13 @@ import java.util.Date;
*/
public class Message {
+ @SerializedName("mid")
public int MID = 0;
+
+ @SerializedName("rid")
public int RID = 0;
+
+ @SerializedName("replyto")
public int ReplyTo = 0;
public String Text = null;
public User User = null;