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