From fc46d9c1f8c9967f9c648f09a3714e8c3a4ed75a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 8 Apr 2016 16:23:55 +0300 Subject: update api --- src/main/java/com/juick/json/UserSerializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick/json') diff --git a/src/main/java/com/juick/json/UserSerializer.java b/src/main/java/com/juick/json/UserSerializer.java index 4485812a..390f4bf6 100644 --- a/src/main/java/com/juick/json/UserSerializer.java +++ b/src/main/java/com/juick/json/UserSerializer.java @@ -55,8 +55,8 @@ public class UserSerializer extends JSONSerializer { if (user.getJID() != null) { json.put("jid", user.getJID()); } - if (user.MessagesCount > 0) { - json.put("MessagesCount", user.MessagesCount); + if (user.getUnreadCount() > 0) { + json.put("unreadCount", user.getUnreadCount()); } } catch (JSONException e) { } -- cgit v1.2.3