2 * Copyright (c) 2010-2022 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.dali.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link DaliResponse} represents different types of responses to DALI
22 * @author Robert Schmid - Initial contribution
25 public class DaliResponse {
26 public void parse(@Nullable DaliBackwardFrame frame) {
29 public static class Numeric extends DaliResponse {
30 public @Nullable Integer value;
33 public void parse(@Nullable DaliBackwardFrame frame) {
40 public static class NumericMask extends DaliResponse.Numeric {
41 public @Nullable Boolean mask;
44 public void parse(@Nullable DaliBackwardFrame frame) {
46 if (this.value == 255) {