2 * Copyright (c) 2010-2024 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.SerializedName;
20 * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
22 * Annotation Style: GSON
25 * allow additional properties
27 * @author Wolfgang Klimt - Initial contribution
29 public class Current {
34 @SerializedName("feels_like")
35 private double feelsLike;
38 @SerializedName("dew_point")
39 private double dewPoint;
42 private int visibility;
43 @SerializedName("wind_speed")
44 private double windSpeed;
45 @SerializedName("wind_deg")
47 @SerializedName("wind_gust")
48 private double windGust;
49 private List<Weather> weather = null;
50 private Precipitation rain;
51 private Precipitation snow;
57 public void setDt(int dt) {
61 public int getSunrise() {
65 public void setSunrise(int sunrise) {
66 this.sunrise = sunrise;
69 public int getSunset() {
73 public void setSunset(int sunset) {
77 public double getTemp() {
81 public void setTemp(double temp) {
85 public double getFeelsLike() {
89 public void setFeelsLike(double feelsLike) {
90 this.feelsLike = feelsLike;
93 public int getPressure() {
97 public void setPressure(int pressure) {
98 this.pressure = pressure;
101 public int getHumidity() {
105 public void setHumidity(int humidity) {
106 this.humidity = humidity;
109 public double getDewPoint() {
113 public void setDewPoint(double dewPoint) {
114 this.dewPoint = dewPoint;
117 public double getUvi() {
121 public void setUvi(double uvi) {
125 public int getClouds() {
129 public void setClouds(int clouds) {
130 this.clouds = clouds;
133 public int getVisibility() {
137 public void setVisibility(int visibility) {
138 this.visibility = visibility;
141 public double getWindSpeed() {
145 public void setWindSpeed(double windSpeed) {
146 this.windSpeed = windSpeed;
149 public int getWindDeg() {
153 public void setWindDeg(int windDeg) {
154 this.windDeg = windDeg;
157 public double getWindGust() {
161 public void setWindGust(double windGust) {
162 this.windGust = windGust;
165 public List<Weather> getWeather() {
169 public void setWeather(List<Weather> weather) {
170 this.weather = weather;
173 public Precipitation getRain() {
177 public void setRain(Precipitation rain) {
181 public Precipitation getSnow() {
185 public void setSnow(Precipitation snow) {