]> git.basschouten.com Git - openhab-addons.git/blob
1e36fe4430068b0bb0e48cba4b1ef8ff95f2367e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.heos.internal.resources;
14
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;
20
21 /**
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}
26  *
27  * @author Johannes Einig - Initial contribution
28  * @author Martin van Wingerden - change handling of stop/pause depending on playing item type
29  */
30 @NonNullByDefault
31 public interface HeosEventListener extends HeosMediaEventListener {
32
33     void playerStateChangeEvent(HeosEventObject eventObject);
34
35     void playerStateChangeEvent(HeosResponseObject<?> responseObject) throws HeosFunctionalException;
36
37     void bridgeChangeEvent(String event, boolean success, Object command);
38 }