]> git.basschouten.com Git - openhab-addons.git/blob
1840fc4d2452aaabe0b3c221d817f25e07741489
[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.onecallhist;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
22  * Settings:
23  * Annotation Style: GSON
24  * Use primitive types
25  * Use double numbers
26  * allow additional properties
27  *
28  * @author Wolfgang Klimt - Initial contribution
29  */
30 public class OpenWeatherMapOneCallHistAPIData {
31
32     @SerializedName("lat")
33     @Expose
34     private double lat;
35     @SerializedName("lon")
36     @Expose
37     private double lon;
38     @SerializedName("timezone")
39     @Expose
40     private String timezone;
41     @SerializedName("timezone_offset")
42     @Expose
43     private int timezoneOffset;
44     @SerializedName("current")
45     @Expose
46     private Current current;
47     @SerializedName("hourly")
48     @Expose
49     private List<Hourly> hourly = null;
50
51     public double getLat() {
52         return lat;
53     }
54
55     public void setLat(double lat) {
56         this.lat = lat;
57     }
58
59     public double getLon() {
60         return lon;
61     }
62
63     public void setLon(double lon) {
64         this.lon = lon;
65     }
66
67     public String getTimezone() {
68         return timezone;
69     }
70
71     public void setTimezone(String timezone) {
72         this.timezone = timezone;
73     }
74
75     public int getTimezoneOffset() {
76         return timezoneOffset;
77     }
78
79     public void setTimezoneOffset(int timezoneOffset) {
80         this.timezoneOffset = timezoneOffset;
81     }
82
83     public Current getCurrent() {
84         return current;
85     }
86
87     public void setCurrent(Current current) {
88         this.current = current;
89     }
90
91     public List<Hourly> getHourly() {
92         return hourly;
93     }
94
95     public void setHourly(List<Hourly> hourly) {
96         this.hourly = hourly;
97     }
98 }