]> git.basschouten.com Git - openhab-addons.git/blob
5a180e0fbd473aba435c1170075508f4f451b45d
[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.homematic.internal.communicator.server;
14
15 import java.util.List;
16
17 import org.openhab.binding.homematic.internal.model.HmDatapointInfo;
18
19 /**
20  * Methods called by the RpcServer when an event is received.
21  *
22  * @author Gerhard Riegler - Initial contribution
23  */
24 public interface RpcEventListener {
25
26     /**
27      * Called when a new event is received from a Homeamtic gateway.
28      */
29     public void eventReceived(HmDatapointInfo dpInfo, Object newValue);
30
31     /**
32      * Called when new devices has been detected on the Homeamtic gateway.
33      */
34     public void newDevices(List<String> adresses);
35
36     /**
37      * Called when devices has been deleted from the Homeamtic gateway.
38      */
39     public void deleteDevices(List<String> addresses);
40 }