2 * Copyright (c) 2010-2023 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.remoteopenhab.internal.listener;
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;
22 * Interface for listeners of events relative to things generated by the {@link RemoteopenhabRestClient}.
24 * @author Laurent Garnier - Initial contribution
27 public interface RemoteopenhabThingsDataListener {
30 * A new ThingStatusInfoChangedEvent was published.
32 void onThingStatusUpdated(String thingUID, RemoteopenhabStatusInfo statusInfo);
35 * A new ThingAddedEvent was published.
37 void onThingAdded(RemoteopenhabThing thing);
40 * A new ThingRemovedEvent was published.
42 void onThingRemoved(RemoteopenhabThing thing);
45 * A new ChannelTriggeredEvent was published.
47 void onChannelTriggered(String channelUID, @Nullable String event);