Back to project page UK-Weather-repo.
The source code is released under:
Apache License
If you think the Android project UK-Weather-repo 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 com.haringeymobile.ukweather.data.objects; /*from w ww . j a va2 s . c o m*/ import java.util.List; import com.google.gson.annotations.SerializedName; /** Current weather information. */ public class CityCurrentWeather implements WeatherInformation { @SerializedName("clouds") private Clouds clouds; @SerializedName("coord") private Coordinates coordinates; @SerializedName("dt") private long date; @SerializedName("id") private int cityId; @SerializedName("main") private NumericParameters numericParameters; @SerializedName("name") private String cityName; @SerializedName("rain") private Rain rain; @SerializedName("sys") private SystemParameters systemParameters; @SerializedName("weather") private List<Weather> weather; @SerializedName("wind") private Wind wind; @Override public String getDescription() { return weather.get(0).getDescription(); } @Override public String getType() { return weather.get(0).getType(); } @Override public String getIconName() { return weather.get(0).getIcon(); } @Override public double getDayTemperature(TemperatureScale temperatureScale) { return numericParameters.getTemperature(temperatureScale); } @Override public double getHumidity() { return numericParameters.getHumidity(); } @Override public double getPressure() { return numericParameters.getPressure(); } @Override public Wind getWind() { return wind; } public int getCityId() { return cityId; } public String getCityName() { return cityName; } public SystemParameters getSystemParameters() { return systemParameters; } public Coordinates getCoordinates() { return coordinates; } }