]> git.basschouten.com Git - openhab-addons.git/blob
c21255d12c015eb08640752881d5d4dda8095ccd
[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.etherrain.internal.api;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link EtherRainStatusResponse} is an encapsulation of responses from the EtherRain
19  *
20  * @author Joe Inkenbrandt - Initial contribution
21  */
22
23 @NonNullByDefault
24 public class EtherRainStatusResponse {
25
26     private String uniqueName = "";
27     private String macAddress = "";
28     private String serviceAccount = "";
29
30     private EtherRainOperatingStatus operatingStatus = EtherRainOperatingStatus.WT;
31     private EtherRainCommandStatus lastCommandStatus = EtherRainCommandStatus.ER;
32     private EtherRainCommandResult lastCommandResult = EtherRainCommandResult.NC;
33
34     private int lastActiveValue;
35     private boolean rainSensor;
36
37     public String getUniqueName() {
38         return uniqueName;
39     }
40
41     public void setUniqueName(String uniqueName) {
42         this.uniqueName = uniqueName;
43     }
44
45     public String getMacAddress() {
46         return macAddress;
47     }
48
49     public void setMacAddress(String macAddress) {
50         this.macAddress = macAddress;
51     }
52
53     public String getServiceAccount() {
54         return serviceAccount;
55     }
56
57     public void setServiceAccount(String serviceAccount) {
58         this.serviceAccount = serviceAccount;
59     }
60
61     public EtherRainOperatingStatus getOperatingStatus() {
62         return operatingStatus;
63     }
64
65     public void setOperatingStatus(EtherRainOperatingStatus operatingStatus) {
66         this.operatingStatus = operatingStatus;
67     }
68
69     public EtherRainCommandStatus getLastCommandStatus() {
70         return lastCommandStatus;
71     }
72
73     public void setLastCommandStatus(EtherRainCommandStatus lastCommandStatus) {
74         this.lastCommandStatus = lastCommandStatus;
75     }
76
77     public EtherRainCommandResult getLastCommandResult() {
78         return lastCommandResult;
79     }
80
81     public void setLastCommandResult(EtherRainCommandResult lastCommandResult) {
82         this.lastCommandResult = lastCommandResult;
83     }
84
85     public int getLastActiveValue() {
86         return lastActiveValue;
87     }
88
89     public void setLastActiveValue(int lastActiveValue) {
90         this.lastActiveValue = lastActiveValue;
91     }
92
93     public boolean isRainSensor() {
94         return rainSensor;
95     }
96
97     public void setRainSensor(boolean rainSensor) {
98         this.rainSensor = rainSensor;
99     }
100 }