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; /*from w ww .jav a 2 s .co m*/ import java.io.Serializable; import org.json.JSONException; import org.json.JSONObject; public class Contact implements Serializable { private static final long serialVersionUID = 1L; public Long user_id; public String desc; public String email; public String phone; public static Contact parse(JSONObject o) throws JSONException { Contact c = new Contact(); if(o.has("user_id")) c.user_id = o.optLong("user_id"); c.desc = o.optString("desc"); c.email = o.optString("email"); c.phone = o.optString("phone"); return c; } }