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 WeatherUndergroundJsonResponse} is the Java class used
17 * to map the entry "response" from the JSON response to a Weather Underground
20 * @author Laurent Garnier - Initial contribution
22 public class WeatherUndergroundJsonResponse {
24 // Commented members indicate properties returned by the API not used by the binding
26 // private String version;
27 // private String termsofService;
28 // private Object features;
29 private WeatherUndergroundJsonError error;
31 public WeatherUndergroundJsonResponse() {
35 * Get the error type returned by the Weather Underground service
37 * @return the error type or null if no error
39 public String getErrorType() {
40 return (error == null) ? null : error.getType();
44 * Get the error description returned by the Weather Underground service
46 * @return the error description or null if no error
48 public String getErrorDescription() {
49 return (error == null) ? null : error.getDescription();