]> git.basschouten.com Git - openhab-addons.git/blob
88702acab4252249e9665aa2005f6c14e79e615b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.fronius.internal.api;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link DeviceStatus} is responsible for storing
19  * the "devicestatus" node
20  *
21  * @author Thomas Rokohl - Initial contribution
22  */
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")
31     private int ledColor;
32     @SerializedName("LEDState")
33     private int ledState;
34     @SerializedName("StateToReset")
35     private boolean stateToReset;
36
37     public int getStatusCode() {
38         return statusCode;
39     }
40
41     public void setStatusCode(int statusCode) {
42         this.statusCode = statusCode;
43     }
44
45     public int getMgmtTimerRemainingTime() {
46         return mgmtTimerRemainingTime;
47     }
48
49     public void setMgmtTimerRemainingTime(int mgmtTimerRemainingTime) {
50         this.mgmtTimerRemainingTime = mgmtTimerRemainingTime;
51     }
52
53     public int getErrorCode() {
54         return errorCode;
55     }
56
57     public void setErrorCode(int errorCode) {
58         this.errorCode = errorCode;
59     }
60
61     public int getLedColor() {
62         return ledColor;
63     }
64
65     public void setLedColor(int ledColor) {
66         this.ledColor = ledColor;
67     }
68
69     public int getLedState() {
70         return ledState;
71     }
72
73     public void setLedState(int ledState) {
74         this.ledState = ledState;
75     }
76
77     public boolean isStateToReset() {
78         return stateToReset;
79     }
80
81     public void setStateToReset(boolean stateToReset) {
82         this.stateToReset = stateToReset;
83     }
84 }