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.fronius.internal.api;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link DeviceStatus} is responsible for storing
19 * the "devicestatus" node
21 * @author Thomas Rokohl - Initial contribution
23 public class DeviceStatus {
24 @SerializedName("StatusCode")
25 private int statusCode;
26 @SerializedName("MgmtTimerRemainingTime")
27 private int mgmtTimerRemainingTime;
28 @SerializedName("ErrorCode")
29 private int errorCode;
30 @SerializedName("LEDColor")
32 @SerializedName("LEDState")
34 @SerializedName("StateToReset")
35 private boolean stateToReset;
37 public int getStatusCode() {
41 public void setStatusCode(int statusCode) {
42 this.statusCode = statusCode;
45 public int getMgmtTimerRemainingTime() {
46 return mgmtTimerRemainingTime;
49 public void setMgmtTimerRemainingTime(int mgmtTimerRemainingTime) {
50 this.mgmtTimerRemainingTime = mgmtTimerRemainingTime;
53 public int getErrorCode() {
57 public void setErrorCode(int errorCode) {
58 this.errorCode = errorCode;
61 public int getLedColor() {
65 public void setLedColor(int ledColor) {
66 this.ledColor = ledColor;
69 public int getLedState() {
73 public void setLedState(int ledState) {
74 this.ledState = ledState;
77 public boolean isStateToReset() {
81 public void setStateToReset(boolean stateToReset) {
82 this.stateToReset = stateToReset;