aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/json/UserSerializer.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-04-08 16:23:55 +0300
committerGravatar Vitaly Takmazov2016-04-08 16:23:55 +0300
commitfc46d9c1f8c9967f9c648f09a3714e8c3a4ed75a (patch)
treee609a7d8c6f9d9c5981a321dbb96ce1518d9d2b6 /src/main/java/com/juick/json/UserSerializer.java
parent9dfad84fa487960fde4cc4b0ac6760c8dd5f4ac9 (diff)
update api
Diffstat (limited to 'src/main/java/com/juick/json/UserSerializer.java')
-rw-r--r--src/main/java/com/juick/json/UserSerializer.java4
1 files changed, 2 insertions, 2 deletions
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<User> {
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) {
}