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.lirc.internal;
15 import org.openhab.binding.lirc.internal.messages.LIRCButtonEvent;
16 import org.openhab.binding.lirc.internal.messages.LIRCResponse;
17 import org.openhab.core.thing.ThingUID;
20 * Interface for listeners to receive messages from LIRC server
22 * @author Andrew Nagle - Initial contribution
24 public interface LIRCMessageListener {
27 * This method is called whenever the message is received from the bridge.
30 * The LIRC bridge where message is received.
32 * The message which received.
34 void onMessageReceived(ThingUID bridge, LIRCResponse message);
37 * This method is called whenever a button is pressed on a remote.
40 * The LIRC bridge where message is received.
42 * Button event details
44 void onButtonPressed(ThingUID bridge, LIRCButtonEvent buttonEvent);