2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.openweathermap.internal.dto.onecall;
15 import java.util.List;
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
21 * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
23 * Annotation Style: GSON
26 * allow additional properties
28 * @author Wolfgang Klimt - Initial contribution
30 public class Current {
35 @SerializedName("sunrise")
38 @SerializedName("sunset")
41 @SerializedName("temp")
44 @SerializedName("feels_like")
46 private double feelsLike;
47 @SerializedName("pressure")
50 @SerializedName("humidity")
53 @SerializedName("dew_point")
55 private double dewPoint;
56 @SerializedName("uvi")
59 @SerializedName("clouds")
62 @SerializedName("visibility")
64 private int visibility;
65 @SerializedName("wind_speed")
67 private double windSpeed;
68 @SerializedName("wind_deg")
71 @SerializedName("wind_gust")
73 private double windGust;
74 @SerializedName("weather")
76 private List<Weather> weather = null;
77 @SerializedName("rain")
80 @SerializedName("snow")
88 public void setDt(int dt) {
92 public int getSunrise() {
96 public void setSunrise(int sunrise) {
97 this.sunrise = sunrise;
100 public int getSunset() {
104 public void setSunset(int sunset) {
105 this.sunset = sunset;
108 public double getTemp() {
112 public void setTemp(double temp) {
116 public double getFeelsLike() {
120 public void setFeelsLike(double feelsLike) {
121 this.feelsLike = feelsLike;
124 public int getPressure() {
128 public void setPressure(int pressure) {
129 this.pressure = pressure;
132 public int getHumidity() {
136 public void setHumidity(int humidity) {
137 this.humidity = humidity;
140 public double getDewPoint() {
144 public void setDewPoint(double dewPoint) {
145 this.dewPoint = dewPoint;
148 public double getUvi() {
152 public void setUvi(double uvi) {
156 public int getClouds() {
160 public void setClouds(int clouds) {
161 this.clouds = clouds;
164 public int getVisibility() {
168 public void setVisibility(int visibility) {
169 this.visibility = visibility;
172 public double getWindSpeed() {
176 public void setWindSpeed(double windSpeed) {
177 this.windSpeed = windSpeed;
180 public int getWindDeg() {
184 public void setWindDeg(int windDeg) {
185 this.windDeg = windDeg;
188 public double getWindGust() {
192 public void setWindGust(double windGust) {
193 this.windGust = windGust;
196 public List<Weather> getWeather() {
200 public void setWeather(List<Weather> weather) {
201 this.weather = weather;
204 public Rain getRain() {
208 public void setRain(Rain rain) {
212 public Snow getSnow() {
216 public void setSnow(Snow snow) {