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.heos.internal.resources;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.heos.internal.api.HeosEventController;
17 import org.openhab.binding.heos.internal.exception.HeosFunctionalException;
18 import org.openhab.binding.heos.internal.json.dto.HeosEventObject;
19 import org.openhab.binding.heos.internal.json.dto.HeosResponseObject;
22 * The {@link HeosEventListener } is an Event Listener
23 * for the HEOS network. Handler which wants the get informed
24 * by an HEOS event via the {@link HeosEventController} has to
25 * implement this class and register itself at the {@link HeosEventController}
27 * @author Johannes Einig - Initial contribution
28 * @author Martin van Wingerden - change handling of stop/pause depending on playing item type
31 public interface HeosEventListener extends HeosMediaEventListener {
33 void playerStateChangeEvent(HeosEventObject eventObject);
35 void playerStateChangeEvent(HeosResponseObject<?> responseObject) throws HeosFunctionalException;
37 void bridgeChangeEvent(String event, boolean success, Object command);