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;
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.Rain;
21 import org.openhab.binding.openweathermap.internal.dto.base.Snow;
22 import org.openhab.binding.openweathermap.internal.dto.base.Weather;
23 import org.openhab.binding.openweathermap.internal.dto.base.Wind;
24 import org.openhab.binding.openweathermap.internal.dto.weather.Main;
25 import org.openhab.binding.openweathermap.internal.dto.weather.Sys;
28 * The {@link OpenWeatherMapJsonWeatherData} is the Java class used to map the JSON response to an OpenWeatherMap
31 * @author Christoph Weitkamp - Initial contribution
33 public class OpenWeatherMapJsonWeatherData {
35 private List<Weather> weather;
38 private @Nullable Integer visibility;
40 private Clouds clouds;
41 private @Nullable Rain rain;
42 private @Nullable Snow snow;
49 public Coord getCoord() {
53 public void setCoord(Coord coord) {
57 public List<Weather> getWeather() {
61 public void setWeather(List<Weather> weather) {
62 this.weather = weather;
65 public String getBase() {
69 public void setBase(String base) {
73 public Main getMain() {
77 public void setMain(Main main) {
81 public @Nullable Integer getVisibility() {
85 public void setVisibility(Integer visibility) {
86 this.visibility = visibility;
89 public Wind getWind() {
93 public void setWind(Wind wind) {
97 public Clouds getClouds() {
101 public void setClouds(Clouds clouds) {
102 this.clouds = clouds;
105 public @Nullable Rain getRain() {
109 public void setRain(Rain rain) {
113 public @Nullable Snow getSnow() {
117 public void setSnow(Snow snow) {
121 public Integer getDt() {
125 public void setDt(Integer dt) {
129 public Sys getSys() {
133 public void setSys(Sys sys) {
137 public Integer getId() {
141 public void setId(Integer id) {
145 public String getName() {
149 public void setName(String name) {
153 public Integer getCod() {
157 public void setCod(Integer cod) {