]> git.basschouten.com Git - openhab-addons.git/blob
3df742fc9aeb7655851e6f6d4baf3229437a6d86
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.lutron.internal.protocol.leap;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.binding.lutron.internal.protocol.leap.dto.Area;
19 import org.openhab.binding.lutron.internal.protocol.leap.dto.ButtonGroup;
20 import org.openhab.binding.lutron.internal.protocol.leap.dto.Device;
21 import org.openhab.binding.lutron.internal.protocol.leap.dto.OccupancyGroup;
22 import org.openhab.binding.lutron.internal.protocol.leap.dto.Project;
23 import org.openhab.binding.lutron.internal.protocol.leap.dto.ZoneStatus;
24
25 /**
26  * Interface defining callback routines used by LeapMessageParser
27  *
28  * @author Bob Adair - Initial contribution
29  */
30 @NonNullByDefault
31 public interface LeapMessageParserCallbacks {
32
33     void handleProjectDefinition(Project project);
34
35     void handleDeviceDefinition(Device device);
36
37     void validMessageReceived(String communiqueType);
38
39     void handleEmptyButtonGroupDefinition();
40
41     void handleZoneUpdate(ZoneStatus zoneStatus);
42
43     void handleGroupUpdate(int groupNumber, String occupancyStatus);
44
45     void handleMultipleButtonGroupDefinition(List<ButtonGroup> buttonGroupList);
46
47     void handleMultipleDeviceDefinition(List<Device> deviceList);
48
49     void handleMultipleAreaDefinition(List<Area> areaList);
50
51     void handleMultipleOccupancyGroupDefinition(List<OccupancyGroup> oGroupList);
52 }