]> git.basschouten.com Git - openhab-addons.git/blob
e91fdd54226bf2e38db5a1fdefe52bfa2e50625d
[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.gardena.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.gardena.internal.model.dto.Device;
17
18 /**
19  * Listener with methods called from events within the {@link GardenaSmart} class.
20  *
21  * @author Gerhard Riegler - Initial contribution
22  */
23 @NonNullByDefault
24 public interface GardenaSmartEventListener {
25
26     /**
27      * Called when a device has been updated.
28      */
29     public void onDeviceUpdated(Device device);
30
31     /**
32      * Called when a new device has been detected.
33      */
34     public void onNewDevice(Device device);
35
36     /**
37      * Called when an unrecoverable error occurs.
38      */
39     public void onError();
40 }