]> git.basschouten.com Git - openhab-addons.git/blob
b9a7afdd20e84e4dd0739a80997ec5d17af9753a
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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 /**
16  * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
17  * Settings:
18  * Annotation Style: GSON
19  * Use primitive types
20  * Use double numbers
21  * allow additional properties
22  *
23  * @author Wolfgang Klimt - Initial contribution
24  */
25 public class Weather {
26     private int id;
27     private String main;
28     private String description;
29     private String icon;
30
31     public int getId() {
32         return id;
33     }
34
35     public void setId(int id) {
36         this.id = id;
37     }
38
39     public String getMain() {
40         return main;
41     }
42
43     public void setMain(String main) {
44         this.main = main;
45     }
46
47     public String getDescription() {
48         return description;
49     }
50
51     public void setDescription(String description) {
52         this.description = description;
53     }
54
55     public String getIcon() {
56         return icon;
57     }
58
59     public void setIcon(String icon) {
60         this.icon = icon;
61     }
62 }