2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.weatherunderground.internal.json;
16 * The {@link WeatherUndergroundJsonData} is the Java class used to map the JSON
17 * response to a Weather Underground request.
19 * @author Laurent Garnier - Initial contribution
21 public class WeatherUndergroundJsonData {
23 private WeatherUndergroundJsonResponse response;
24 private WeatherUndergroundJsonCurrent current_observation;
25 private WeatherUndergroundJsonForecast forecast;
26 private WeatherUndergroundJsonLocation location;
28 public WeatherUndergroundJsonData() {
32 * Get the {@link WeatherUndergroundJsonResponse} object
34 * @return the {@link WeatherUndergroundJsonResponse} object
36 public WeatherUndergroundJsonResponse getResponse() {
41 * Get the {@link WeatherUndergroundJsonLocation} object
43 * @return the {@link WeatherUndergroundJsonLocation} object
45 public WeatherUndergroundJsonLocation getLocation() {
50 * Get the {@link WeatherUndergroundJsonForecast} object
52 * @return the {@link WeatherUndergroundJsonForecast} object
54 public WeatherUndergroundJsonForecast getForecast() {
59 * Get the {@link WeatherUndergroundJsonCurrent} object
61 * Used to update the channels current#xxx
63 * @return the {@link WeatherUndergroundJsonCurrent} object
65 public WeatherUndergroundJsonCurrent getCurrent() {
66 return current_observation;