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.homematic.internal.communicator.server;
15 import java.util.List;
17 import org.openhab.binding.homematic.internal.model.HmDatapointInfo;
20 * Methods called by the RpcServer when an event is received.
22 * @author Gerhard Riegler - Initial contribution
24 public interface RpcEventListener {
27 * Called when a new event is received from a Homeamtic gateway.
29 public void eventReceived(HmDatapointInfo dpInfo, Object newValue);
32 * Called when new devices has been detected on the Homeamtic gateway.
34 public void newDevices(List<String> adresses);
37 * Called when devices has been deleted from the Homeamtic gateway.
39 public void deleteDevices(List<String> addresses);