2 * Copyright (c) 2010-2020 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.gardena.internal;
15 import org.openhab.binding.gardena.internal.model.Device;
18 * Listener with methods called from events within the {@link GardenaSmart} class.
20 * @author Gerhard Riegler - Initial contribution
22 public interface GardenaSmartEventListener {
25 * Called when a device has been updated.
27 public void onDeviceUpdated(Device device);
30 * Called when a new device has been detected.
32 public void onNewDevice(Device device);
35 * Called when a device has been deleted.
37 public void onDeviceDeleted(Device device);
40 * Called when the connection is lost to Gardena Smart Home.
42 public void onConnectionLost();
45 * Called when the connection is resumed to Gardena Smart Home.
47 public void onConnectionResumed();