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; /* ww w . jav a 2 s . c o m*/ import org.json.JSONException; import org.json.JSONObject; public class Country { public long cid; public String name; public static Country parse(JSONObject o) throws NumberFormatException, JSONException{ Country c = new Country(); c.cid = o.getLong("id"); c.name = o.optString("title"); return c; } }