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.magentatv.internal.handler;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.magentatv.internal.MagentaTVException;
21 * The {@link MagentaTVListener} defines the interface to pass back the pairing
22 * code and device events to the listener
24 * @author Markus Michels - Initial contribution
27 public interface MagentaTVListener {
29 * Device returned pairing code
31 * @param pairingCode Code to be used for pairing process
32 * @throws MagentaTVException
34 void onPairingResult(String pairingCode) throws MagentaTVException;
37 * Device woke up (UPnP)
39 * @param discoveredProperties Properties from UPnP discovery
40 * @throws MagentaTVException
42 void onWakeup(Map<String, String> discoveredProperties) throws MagentaTVException;
45 * An event has been received from the MR
47 * @param playContent event information
48 * @throws MagentaTVException
50 void onMREvent(String playContent) throws MagentaTVException;
53 * A power-off was detected (SSDN message received)
55 * @throws MagentaTVException
57 void onPowerOff() throws MagentaTVException;