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