]> git.basschouten.com Git - openhab-addons.git/blob
72ac7ce6a0cddc5cf6f2c3b444a672e8214fccdb
[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.denonmarantz.internal;
14
15 import org.openhab.binding.denonmarantz.internal.handler.DenonMarantzHandler;
16 import org.openhab.core.types.State;
17
18 /**
19  * Interface to notify the {@link DenonMarantzHandler} about state changes.
20  *
21  * @author Jan-Willem Veldhuis - Initial contribution
22  *
23  */
24 public interface DenonMarantzStateChangedListener {
25     /**
26      * Update was received.
27      *
28      * @param channelID the channel for which its state changed
29      * @param state the new state of the channel
30      */
31     void stateChanged(String channelID, State state);
32
33     /**
34      * A connection error occurred
35      *
36      * @param errorMessage the error message
37      */
38     void connectionError(String errorMessage);
39 }