]> git.basschouten.com Git - openhab-addons.git/blob
453d5acddd868ef8f9e72bce1a810cc318ea5602
[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.bluetooth.am43.internal.data;
14
15 /**
16  * The {@link ControlAction} list possible controls actions that can be sent through
17  * {@link org.openhab.binding.bluetooth.am43.internal.command.ControlCommand}
18  *
19  * @author Connor Petty - Initial contribution
20  */
21 public enum ControlAction {
22     CLOSE(0xee),
23     OPEN(0xdd),
24     STOP(0xcc);
25
26     private byte code;
27
28     private ControlAction(int code) {
29         this.code = (byte) code;
30     }
31
32     public byte getCode() {
33         return code;
34     }
35 }