]> git.basschouten.com Git - openhab-addons.git/blob
d285856f8b5974c31f72d93e1306e9b96febbbfc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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 java.util.EventListener;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.heos.internal.api.HeosEventController;
19 import org.openhab.binding.heos.internal.exception.HeosFunctionalException;
20 import org.openhab.binding.heos.internal.json.dto.HeosEventObject;
21 import org.openhab.binding.heos.internal.json.dto.HeosResponseObject;
22 import org.openhab.binding.heos.internal.json.payload.Media;
23
24 /**
25  * The {@link HeosEventListener } is an Event Listener
26  * for the HEOS network. Handler which wants the get informed
27  * by an HEOS event via the {@link HeosEventController} has to
28  * implement this class and register itself at the {@link HeosEventController}
29  *
30  * @author Johannes Einig - Initial contribution
31  */
32 @NonNullByDefault
33 public interface HeosEventListener extends EventListener {
34
35     void playerStateChangeEvent(HeosEventObject eventObject);
36
37     void playerStateChangeEvent(HeosResponseObject<?> responseObject) throws HeosFunctionalException;
38
39     void playerMediaChangeEvent(String pid, Media media);
40
41     void bridgeChangeEvent(String event, boolean success, Object command);
42 }