]> git.basschouten.com Git - openhab-addons.git/blob
224502c0c9ebad49296a4ab203dcdf5130fe7f15
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.gardena.internal;
14
15 import org.openhab.binding.gardena.internal.model.Device;
16
17 /**
18  * Listener with methods called from events within the {@link GardenaSmart} class.
19  *
20  * @author Gerhard Riegler - Initial contribution
21  */
22 public interface GardenaSmartEventListener {
23
24     /**
25      * Called when a device has been updated.
26      */
27     public void onDeviceUpdated(Device device);
28
29     /**
30      * Called when a new device has been detected.
31      */
32     public void onNewDevice(Device device);
33
34     /**
35      * Called when a device has been deleted.
36      */
37     public void onDeviceDeleted(Device device);
38
39     /**
40      * Called when the connection is lost to Gardena Smart Home.
41      */
42     public void onConnectionLost();
43
44     /**
45      * Called when the connection is resumed to Gardena Smart Home.
46      */
47     public void onConnectionResumed();
48 }