2 * Copyright (c) 2010-2022 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.millheat.internal.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link AbstractResponse} class is the base class for all decoded JSON responses from the API
20 * @author Arne Seime - Initial contribution
22 public abstract class AbstractResponse {
23 public static final int ERROR_CODE_ACCESS_TOKEN_EXPIRED = 3515;
24 public static final int ERROR_CODE_INVALID_SIGNATURE = 3015;
25 public static final int ERROR_CODE_AUTHENTICATION_FAILURE = 1025;
27 @SerializedName("error")
28 public String errorName;
29 @SerializedName("description")
30 public String errorDescription;