Package org.fluxtream.core.domain.metadata

Examples of org.fluxtream.core.domain.metadata.WeatherInfo


      JSONArray hourly = weatherData.getJSONArray("hourly");
      if (hourly!=null) {
        @SuppressWarnings("rawtypes") Iterator iterator = hourly.iterator();
        while (iterator.hasNext()) {
          JSONObject hourlyRecord = (JSONObject) iterator.next();
          WeatherInfo weatherInfo = new WeatherInfo();
          weatherInfo.cloudcover = Integer.valueOf(hourlyRecord.getString("cloudcover"));
          weatherInfo.humidity = Integer.valueOf(hourlyRecord.getString("humidity"));
          weatherInfo.precipMM = Float.valueOf(hourlyRecord.getString("precipMM"));
          weatherInfo.pressure = Integer.valueOf(hourlyRecord.getString("pressure"));
          weatherInfo.tempC = Integer.valueOf(hourlyRecord.getString("tempC"));
View Full Code Here

TOP

Related Classes of org.fluxtream.core.domain.metadata.WeatherInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.