2 * Copyright (c) 2010-2021 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 java.util.EventListener;
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;
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}
30 * @author Johannes Einig - Initial contribution
33 public interface HeosEventListener extends EventListener {
35 void playerStateChangeEvent(HeosEventObject eventObject);
37 void playerStateChangeEvent(HeosResponseObject<?> responseObject) throws HeosFunctionalException;
39 void playerMediaChangeEvent(String pid, Media media);
41 void bridgeChangeEvent(String event, boolean success, Object command);