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 a v a2 s.c o m*/ import org.json.JSONException; import org.json.JSONObject; public class faq { protected String id; protected String question; protected String url; protected String answer; protected String answer_html; public faq(String id, String question, String url, String answer, String answer_html) { this.id = id; this.question = question; this.url = url; this.answer = answer; this.answer_html = answer_html; } public faq(JSONObject json) throws JSONException { this.id = json.getString("id"); this.question = json.getString("question"); this.url = json.getString("url"); this.answer = json.getString("answer"); this.answer_html = json.getString("answer_html"); } public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put("id", this.id); json.put("question", this.question); json.put("url", this.url); json.put("answer", this.answer); json.put("answer_html", this.answer_html); return json; } }