Back to project page android-weather-demo-application.
The source code is released under:
GNU General Public License
If you think the Android project android-weather-demo-application 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 org.openweathermap.dto.base; /* w w w . ja v a2 s.com*/ import org.json.JSONException; import org.json.JSONObject; /** * A data transfer object "DTO" is a pure java object representation of * of a definition language. DTOs are used to abstract the type of definition * language being used. In this example JSON is the definition language used so a * fromJson method is exposed. If XML or YAML were introduced a fromXML or fromYAML method * could be exposed and no business logic would need to changed. * * The actual DTO classes e.g CityDTO, handle the parsing between java objects and the * chosen definition language * @author samkirton */ public interface IDTO { public void fromJson(JSONObject jsonObject) throws JSONException; }