From c3d949e11a4380a2353fca0abf12292285fde02c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 4 Nov 2015 14:19:11 +0300 Subject: initial gson support --- src/main/java/com/juick/Message.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java') 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; -- cgit v1.2.3