]> git.basschouten.com Git - openhab-addons.git/blob
e935ab55b7c816ab6715e811ea6909b249c15bf2
[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.mielecloud.internal.webservice;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.mielecloud.internal.webservice.api.ActionsState;
17 import org.openhab.binding.mielecloud.internal.webservice.api.DeviceState;
18
19 /**
20  * Listener for the device states.
21  *
22  * @author Björn Lange and Roland Edelhoff - Initial contribution
23  */
24 @NonNullByDefault
25 public interface DeviceStateListener {
26     /**
27      * Invoked when new status information is available for a device.
28      *
29      * @param deviceState The device state information.
30      */
31     void onDeviceStateUpdated(DeviceState deviceState);
32
33     /**
34      * Invoked when a new process action is available for a device.
35      *
36      * @param actionState The action state information.
37      */
38     void onProcessActionUpdated(ActionsState actionState);
39
40     /**
41      * Invoked when a device got removed from the Miele cloud and no information is available about it.
42      *
43      * @param deviceIdentifier The identifier of the removed device.
44      */
45     void onDeviceRemoved(String deviceIdentifier);
46 }