]> git.basschouten.com Git - openhab-addons.git/blob
3378fbcdb95d671efdf400facd093dc207c18807
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.openweathermap.internal.dto;
14
15 import java.util.List;
16
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;
25
26 /**
27  * The {@link OpenWeatherMapJsonWeatherData} is the Java class used to map the JSON response to an OpenWeatherMap
28  * request.
29  *
30  * @author Christoph Weitkamp - Initial contribution
31  */
32 public class OpenWeatherMapJsonWeatherData {
33     private Coord coord;
34     private List<Weather> weather;
35     private String base;
36     private Main main;
37     private @Nullable Integer visibility;
38     private Wind wind;
39     private Clouds clouds;
40     private @Nullable Precipitation rain;
41     private @Nullable Precipitation snow;
42     private Integer dt;
43     private Sys sys;
44     private Integer id;
45     private String name;
46     private Integer cod;
47
48     public Coord getCoord() {
49         return coord;
50     }
51
52     public void setCoord(Coord coord) {
53         this.coord = coord;
54     }
55
56     public List<Weather> getWeather() {
57         return weather;
58     }
59
60     public void setWeather(List<Weather> weather) {
61         this.weather = weather;
62     }
63
64     public String getBase() {
65         return base;
66     }
67
68     public void setBase(String base) {
69         this.base = base;
70     }
71
72     public Main getMain() {
73         return main;
74     }
75
76     public void setMain(Main main) {
77         this.main = main;
78     }
79
80     public @Nullable Integer getVisibility() {
81         return visibility;
82     }
83
84     public void setVisibility(Integer visibility) {
85         this.visibility = visibility;
86     }
87
88     public Wind getWind() {
89         return wind;
90     }
91
92     public void setWind(Wind wind) {
93         this.wind = wind;
94     }
95
96     public Clouds getClouds() {
97         return clouds;
98     }
99
100     public void setClouds(Clouds clouds) {
101         this.clouds = clouds;
102     }
103
104     public @Nullable Precipitation getRain() {
105         return rain;
106     }
107
108     public void setRain(Precipitation rain) {
109         this.rain = rain;
110     }
111
112     public @Nullable Precipitation getSnow() {
113         return snow;
114     }
115
116     public void setSnow(Precipitation snow) {
117         this.snow = snow;
118     }
119
120     public Integer getDt() {
121         return dt;
122     }
123
124     public void setDt(Integer dt) {
125         this.dt = dt;
126     }
127
128     public Sys getSys() {
129         return sys;
130     }
131
132     public void setSys(Sys sys) {
133         this.sys = sys;
134     }
135
136     public Integer getId() {
137         return id;
138     }
139
140     public void setId(Integer id) {
141         this.id = id;
142     }
143
144     public String getName() {
145         return name;
146     }
147
148     public void setName(String name) {
149         this.name = name;
150     }
151
152     public Integer getCod() {
153         return cod;
154     }
155
156     public void setCod(Integer cod) {
157         this.cod = cod;
158     }
159 }