2 * Copyright (c) 2010-2024 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.denonmarantz.internal;
15 import org.openhab.core.types.State;
18 * Interface to notify the {@link org.openhab.binding.denonmarantz.internal.handler.DenonMarantzHandler} about state
21 * @author Jan-Willem Veldhuis - Initial contribution
24 public interface DenonMarantzStateChangedListener {
26 * Update was received.
28 * @param channelID the channel for which its state changed
29 * @param state the new state of the channel
31 void stateChanged(String channelID, State state);
34 * A connection error occurred
36 * @param errorMessage the error message
38 void connectionError(String errorMessage);