]> git.basschouten.com Git - openhab-addons.git/blob
e1024c4d388a13a6df0d59baa3d14698a6a52958
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.energenie.internal;
14
15 import static org.openhab.binding.energenie.internal.EnergenieBindingConstants.*;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The {@link EnergenieProtocolEnum} contains informations for parsing the readState() result.
21  *
22  * @author Hans-Jörg Merk - Initial contribution
23  */
24
25 @NonNullByDefault
26 public enum EnergenieProtocolEnum {
27     V20(STATE_ON),
28     V21(V21_STATE_ON),
29     WLAN(WLAN_STATE_ON);
30
31     private final String statusOn;
32
33     private EnergenieProtocolEnum(String statusOn) {
34         this.statusOn = statusOn;
35     }
36
37     public String getStatusOn() {
38         return statusOn;
39     }
40 }