]> git.basschouten.com Git - openhab-addons.git/blob
c1bd749ad7420324c4fc11f7a9ff9be8989b3381
[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.weatherunderground.internal.json;
14
15 /**
16  * The {@link WeatherUndergroundJsonData} is the Java class used to map the JSON
17  * response to a Weather Underground request.
18  *
19  * @author Laurent Garnier - Initial contribution
20  */
21 public class WeatherUndergroundJsonData {
22
23     private WeatherUndergroundJsonResponse response;
24     private WeatherUndergroundJsonCurrent current_observation;
25     private WeatherUndergroundJsonForecast forecast;
26     private WeatherUndergroundJsonLocation location;
27
28     public WeatherUndergroundJsonData() {
29     }
30
31     /**
32      * Get the {@link WeatherUndergroundJsonResponse} object
33      *
34      * @return the {@link WeatherUndergroundJsonResponse} object
35      */
36     public WeatherUndergroundJsonResponse getResponse() {
37         return response;
38     }
39
40     /**
41      * Get the {@link WeatherUndergroundJsonLocation} object
42      *
43      * @return the {@link WeatherUndergroundJsonLocation} object
44      */
45     public WeatherUndergroundJsonLocation getLocation() {
46         return location;
47     }
48
49     /**
50      * Get the {@link WeatherUndergroundJsonForecast} object
51      *
52      * @return the {@link WeatherUndergroundJsonForecast} object
53      */
54     public WeatherUndergroundJsonForecast getForecast() {
55         return forecast;
56     }
57
58     /**
59      * Get the {@link WeatherUndergroundJsonCurrent} object
60      *
61      * Used to update the channels current#xxx
62      *
63      * @return the {@link WeatherUndergroundJsonCurrent} object
64      */
65     public WeatherUndergroundJsonCurrent getCurrent() {
66         return current_observation;
67     }
68 }