Back to project page Android-VKontakte-SDK.
The source code is released under:
MIT License
If you think the Android project Android-VKontakte-SDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.perm.kate.api; // w w w .j a v a 2 s. c om import org.json.JSONException; import org.json.JSONObject; public class Counters { public int friends; public int messages; public int notifications;//new replies notifications public int events; public int groups; public static Counters parse(JSONObject o) throws JSONException { Counters a = new Counters(); if(o==null) return a; a.friends = o.optInt("friends"); a.messages = o.optInt("messages"); a.notifications = o.optInt("notifications"); a.events = o.optInt("events"); a.groups = o.optInt("groups"); return a; } }