Android Open Source - homeless-nyc web Action






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




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