2 * Copyright (c) 2010-2023 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;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.Nullable;
18 import org.openhab.binding.openweathermap.internal.dto.base.Clouds;
19 import org.openhab.binding.openweathermap.internal.dto.base.Coord;
20 import org.openhab.binding.openweathermap.internal.dto.base.Precipitation;
21 import org.openhab.binding.openweathermap.internal.dto.base.Weather;
22 import org.openhab.binding.openweathermap.internal.dto.base.Wind;
23 import org.openhab.binding.openweathermap.internal.dto.weather.Main;
24 import org.openhab.binding.openweathermap.internal.dto.weather.Sys;
27 * The {@link OpenWeatherMapJsonWeatherData} is the Java class used to map the JSON response to an OpenWeatherMap
30 * @author Christoph Weitkamp - Initial contribution
32 public class OpenWeatherMapJsonWeatherData {
34 private List<Weather> weather;
37 private @Nullable Integer visibility;
39 private Clouds clouds;
40 private @Nullable Precipitation rain;
41 private @Nullable Precipitation snow;
48 public Coord getCoord() {
52 public void setCoord(Coord coord) {
56 public List<Weather> getWeather() {
60 public void setWeather(List<Weather> weather) {
61 this.weather = weather;
64 public String getBase() {
68 public void setBase(String base) {
72 public Main getMain() {
76 public void setMain(Main main) {
80 public @Nullable Integer getVisibility() {
84 public void setVisibility(Integer visibility) {
85 this.visibility = visibility;
88 public Wind getWind() {
92 public void setWind(Wind wind) {
96 public Clouds getClouds() {
100 public void setClouds(Clouds clouds) {
101 this.clouds = clouds;
104 public @Nullable Precipitation getRain() {
108 public void setRain(Precipitation rain) {
112 public @Nullable Precipitation getSnow() {
116 public void setSnow(Precipitation snow) {
120 public Integer getDt() {
124 public void setDt(Integer dt) {
128 public Sys getSys() {
132 public void setSys(Sys sys) {
136 public Integer getId() {
140 public void setId(Integer id) {
144 public String getName() {
148 public void setName(String name) {
152 public Integer getCod() {
156 public void setCod(Integer cod) {