Back to project page DoomPlay.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUC...
If you think the Android project DoomPlay 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.api; // w w w . j a v a 2 s. c o m import org.json.JSONException; import org.json.JSONObject; public class PhotoTag { private Long owner_id; private long pid; private long uid; private long tag_id; private long placer_id; private String tagged_name; private long date; private double x; private double y; private double x2; private double y2; private int viewed; public static PhotoTag parse(JSONObject o) throws NumberFormatException, JSONException { PhotoTag t = new PhotoTag(); t.uid = o.getLong("uid"); t.tag_id = o.optLong("tag_id"); t.placer_id = o.optLong("placer_id"); t.tagged_name = Api.unescape(o.optString("tagged_name")); t.date = o.optLong("date"); t.x = o.optDouble("x"); t.x2 = o.optDouble("x2"); t.y = o.optDouble("y"); t.y2 = o.optDouble("y2"); t.viewed = o.optInt("viewed"); return t; } public PhotoTag() { } public PhotoTag(Long owner_id, long pid, long uid, double x, double y, double x2, double y2) { this.owner_id = owner_id; this.pid = pid; this.uid = uid; this.x = x; this.y = y; this.x2 = x2; this.y2 = y2; } }