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.robonect.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * POJO for deserialize an error entry from a JSON response using GSON.
20 * @author Marco Meyer - Initial contribution
22 public class ErrorEntry {
26 @SerializedName("error_code")
27 private Integer errorCode;
29 @SerializedName("error_message")
30 private String errorMessage;
37 * @return - the date the error happend in the format "dd.MM.yy"
39 public String getDate() {
44 * @return - the error code. Some codes are documented here: http://www.robonect.de/viewtopic.php?f=11&t=110
46 public Integer getErrorCode() {
51 * @return - The localized error message from the mower.
53 public String getErrorMessage() {
58 * @return - The time the error happened in the format "HH:mm:ss"
60 public String getTime() {
65 * @return - The unix time when the error happened.
67 public String getUnix() {
71 public void setDate(String date) {
75 public void setErrorCode(Integer errorCode) {
76 this.errorCode = errorCode;
79 public void setErrorMessage(String errorMessage) {
80 this.errorMessage = errorMessage;
83 public void setTime(String time) {
87 public void setUnix(String unix) {