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 w w . j a va 2 s . c o m*/ import java.io.Serializable; import org.json.JSONException; import org.json.JSONObject; public class Gift implements Serializable { private static final long serialVersionUID = 1L; public long id; public String thumb_256; //public String thumb_96; //public String thumb_48; public static Gift parse(JSONObject o) throws NumberFormatException, JSONException{ Gift gift = new Gift(); gift.id = o.getLong("id"); gift.thumb_256 = o.getString("thumb_256"); //audio.thumb_96 = o.getString("thumb_96"); //audio.thumb_48 = o.getString("thumb_48"); return gift; } }