oimtrust

Item_WeatherYahooApp

Nov 28th, 2016
1,563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package com.oimtrust.weatheryahoo.data;
  2.  
  3. import org.json.JSONObject;
  4.  
  5. /**
  6.  * Created by Oim on 10/12/2016.
  7.  */
  8.  
  9. public class Item implements JSONPopulator {
  10.     private Condition condition;
  11.  
  12.     public Condition getCondition() {
  13.         return condition;
  14.     }
  15.  
  16.     @Override
  17.     public void populate(JSONObject data) {
  18.         condition   = new Condition();
  19.         condition.populate(data.optJSONObject("condition"));
  20.     }
  21. }
Add Comment
Please, Sign In to add comment