]> git.basschouten.com Git - openhab-addons.git/blob
68c1cfa09be238a128d92647d4a9a89c7c1c403d
[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 Weather {
29
30     @SerializedName("id")
31     @Expose
32     private int id;
33     @SerializedName("main")
34     @Expose
35     private String main;
36     @SerializedName("description")
37     @Expose
38     private String description;
39     @SerializedName("icon")
40     @Expose
41     private String icon;
42
43     public int getId() {
44         return id;
45     }
46
47     public void setId(int id) {
48         this.id = id;
49     }
50
51     public String getMain() {
52         return main;
53     }
54
55     public void setMain(String main) {
56         this.main = main;
57     }
58
59     public String getDescription() {
60         return description;
61     }
62
63     public void setDescription(String description) {
64         this.description = description;
65     }
66
67     public String getIcon() {
68         return icon;
69     }
70
71     public void setIcon(String icon) {
72         this.icon = icon;
73     }
74 }