]> git.basschouten.com Git - openhab-addons.git/blob
bce4596831600e3bf85c0a126604bb7263b15c08
[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.onecall;
14
15 import com.google.gson.annotations.Expose;
16 import com.google.gson.annotations.SerializedName;
17
18 /**
19  * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
20  * Settings:
21  * Annotation Style: GSON
22  * Use primitive types
23  * Use double numbers
24  * allow additional properties
25  *
26  * @author Wolfgang Klimt - Initial contribution
27  */
28 public class Minutely {
29
30     @SerializedName("dt")
31     @Expose
32     private int dt;
33     @SerializedName("precipitation")
34     @Expose
35     private double precipitation;
36
37     public int getDt() {
38         return dt;
39     }
40
41     public void setDt(int dt) {
42         this.dt = dt;
43     }
44
45     public double getPrecipitation() {
46         return precipitation;
47     }
48
49     public void setPrecipitation(double precipitation) {
50         this.precipitation = precipitation;
51     }
52 }