]> git.basschouten.com Git - openhab-addons.git/blob
5562e0a505f70d009f20f506dfca2c915159bfce
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.millheat.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link AbstractResponse} class is the base class for all decoded JSON responses from the API
19  *
20  * @author Arne Seime - Initial contribution
21  */
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;
26     public int errorCode;
27     @SerializedName("error")
28     public String errorName;
29     @SerializedName("description")
30     public String errorDescription;
31 }