]> git.basschouten.com Git - openhab-addons.git/blob
3509ce77608b766d2bb148af4b7ec92d12616628
[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.meteoblue.internal.json;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * {@link JsonUnits} models the 'metadata' portion of the JSON
19  * response to a weather request.
20  *
21  * @author Chris Carman - Initial contribution
22  */
23 public class JsonMetadata {
24
25     private String name;
26     private Double latitude;
27     private Double longitude;
28     private Integer height;
29
30     // [sic]
31     @SerializedName("timezone_abbrevation")
32     private String timeZoneAbbreviation;
33
34     public JsonMetadata() {
35     }
36
37     public String getName() {
38         return name;
39     }
40
41     public Double getLatitude() {
42         return latitude;
43     }
44
45     public Double getLongitude() {
46         return longitude;
47     }
48
49     public Integer getHeight() {
50         return height;
51     }
52
53     public String getTimeZoneAbbreviation() {
54         return timeZoneAbbreviation;
55     }
56 }