Android Open Source - homeless-nyc faq






From Project

Back to project page homeless-nyc.

License

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.

Java Source Code

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;
  }
}




Java Source Code List

io.rasmi.homelessnyc.JSONParser.java
io.rasmi.homelessnyc.MainActivity.java
io.rasmi.homelessnyc.MapActivity.java
io.rasmi.homelessnyc.facilitiesManager.java
io.rasmi.homelessnyc.facilityInfo.java
io.rasmi.homelessnyc.facility.java
io.rasmi.homelessnyc.faq.java
io.rasmi.homelessnyc.reportActivity.java
io.rasmi.homelessnyc.serviceInfo.java
io.rasmi.homelessnyc.serviceList.java
io.rasmi.homelessnyc.service.java
io.rasmi.homelessnyc.servicesManager.java
io.rasmi.homelessnyc.webAction.java