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.homeconnect.internal.client.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Event handling model.
21 * @author Jonas BrĂ¼stel - Initial contribution
25 public enum EventHandling {
27 ACKNOWLEDGE("acknowledge"),
30 private final String handling;
32 EventHandling(String handling) {
33 this.handling = handling;
36 public String getHandling() {
40 public static @Nullable EventHandling valueOfHandling(String type) {
41 for (EventHandling eventType : EventHandling.values()) {
42 if (eventType.handling.equalsIgnoreCase(type)) {