]> git.basschouten.com Git - openhab-addons.git/blob
8bcc3c6e63550c6465be8400d3aa7bdd69601181
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.remoteopenhab.internal.listener;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.remoteopenhab.internal.data.RemoteopenhabStatusInfo;
18 import org.openhab.binding.remoteopenhab.internal.data.RemoteopenhabThing;
19 import org.openhab.binding.remoteopenhab.internal.rest.RemoteopenhabRestClient;
20
21 /**
22  * Interface for listeners of events relative to things generated by the {@link RemoteopenhabRestClient}.
23  *
24  * @author Laurent Garnier - Initial contribution
25  */
26 @NonNullByDefault
27 public interface RemoteopenhabThingsDataListener {
28
29     /**
30      * A new ThingStatusInfoChangedEvent was published.
31      */
32     void onThingStatusUpdated(String thingUID, RemoteopenhabStatusInfo statusInfo);
33
34     /**
35      * A new ThingAddedEvent was published.
36      */
37     void onThingAdded(RemoteopenhabThing thing);
38
39     /**
40      * A new ThingRemovedEvent was published.
41      */
42     void onThingRemoved(RemoteopenhabThing thing);
43
44     /**
45      * A new ChannelTriggeredEvent was published.
46      */
47     void onChannelTriggered(String channelUID, @Nullable String event);
48 }