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 . ja va 2 s . c o m import org.json.JSONException; import org.json.JSONObject; public class BanInfo { public long admin_id; public long date; public int reason; public String comment; public long end_date; public static BanInfo parse(JSONObject o) throws NumberFormatException, JSONException { BanInfo info = new BanInfo(); info.admin_id = Long.parseLong(o.getString("admin_id")); info.date = Long.parseLong(o.getString("date")); info.reason = Integer.parseInt(o.getString("reason")); info.comment = o.optString("comment"); info.end_date = Long.parseLong(o.getString("admin_id")); return info; } }