oimtrust

Units_WeatherYahooApp

Nov 28th, 2016
1,570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 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 Units implements JSONPopulator {
  10.     private String temperature;
  11.  
  12.     public String getTemperature() {
  13.         return temperature;
  14.     }
  15.  
  16.     @Override
  17.     public void populate(JSONObject data) {
  18.         temperature = data.optString("temperature");
  19.     }
  20. }
Add Comment
Please, Sign In to add comment