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.nuki.internal.constants;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Enumeration of all lock actions Nuki Opener accepts
21 * @author Jan Vybíral - Initial contribution
24 public enum OpenerAction {
25 ACTIVATE_RING_TO_OPEN(1),
26 DEACTIVATE_RING_TO_OPEN(2),
27 ELECTRIC_STRIKE_ACTUATION(3),
28 ACTIVATE_CONTINUOUS_MODE(4),
29 DEACTIVATE_CONTINUOUS_MODE(5);
31 private final int action;
33 OpenerAction(int action) {
37 public static @Nullable OpenerAction fromAction(int action) {
38 for (OpenerAction value : values()) {
39 if (value.action == action) {
46 public int getAction() {