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:
45 * <a href="http://www.robonect.de/viewtopic.php?f=11&t=110">
46 * http://www.robonect.de/viewtopic.php?f=11&t=110</a>
48 public Integer getErrorCode() {
53 * @return - The localized error message from the mower.
55 public String getErrorMessage() {
60 * @return - The time the error happened in the format "HH:mm:ss"
62 public String getTime() {
67 * @return - The unix time when the error happened.
69 public String getUnix() {
73 public void setDate(String date) {
77 public void setErrorCode(Integer errorCode) {
78 this.errorCode = errorCode;
81 public void setErrorMessage(String errorMessage) {
82 this.errorMessage = errorMessage;
85 public void setTime(String time) {
89 public void setUnix(String unix) {