Back to project page homeless-nyc.
The source code is released under:
GNU General Public License
If you think the Android project homeless-nyc 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 io.rasmi.homelessnyc; /*from w w w . j av a 2 s . c o m*/ import org.json.JSONException; import org.json.JSONObject; public class webAction { protected String type; protected String label; protected String url; public webAction(String type, String label, String url) { this.type = type; this.label = label; this.url = url; } public webAction(JSONObject json) throws JSONException { this.type = json.getString("type"); this.label = json.getString("label"); this.url = json.getString("url"); } public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put("type", this.type); json.put("label", this.label); json.put("url", this.url); return json; } }