]> git.basschouten.com Git - openhab-addons.git/blob
61e7566efed0140b6eeb1d8c3af5c85c6eb55207
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.qolsysiq.internal.client;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.qolsysiq.internal.client.dto.event.AlarmEvent;
17 import org.openhab.binding.qolsysiq.internal.client.dto.event.ArmingEvent;
18 import org.openhab.binding.qolsysiq.internal.client.dto.event.ErrorEvent;
19 import org.openhab.binding.qolsysiq.internal.client.dto.event.SecureArmInfoEvent;
20 import org.openhab.binding.qolsysiq.internal.client.dto.event.SummaryInfoEvent;
21 import org.openhab.binding.qolsysiq.internal.client.dto.event.ZoneActiveEvent;
22 import org.openhab.binding.qolsysiq.internal.client.dto.event.ZoneAddEvent;
23 import org.openhab.binding.qolsysiq.internal.client.dto.event.ZoneUpdateEvent;
24
25 /**
26  *
27  * @author Dan Cunningham - Initial contribution
28  */
29 @NonNullByDefault
30 public interface QolsysIQClientListener {
31     /**
32      * Callback when the connection has been disconnected
33      *
34      * @param reason
35      */
36     void disconnected(Exception reason);
37
38     /**
39      * {@link AlarmEvent} message callback
40      *
41      * @param event
42      */
43     void alarmEvent(AlarmEvent event);
44
45     /**
46      * {@link ArmingEvent} message callback
47      *
48      * @param event
49      */
50     void armingEvent(ArmingEvent event);
51
52     /**
53      * {@link ErrorEvent} message callback
54      *
55      * @param event
56      */
57     void errorEvent(ErrorEvent event);
58
59     /**
60      * {@link SummaryInfoEvent} message callback
61      *
62      * @param event
63      */
64     void summaryInfoEvent(SummaryInfoEvent event);
65
66     /**
67      * {@link SecureArmInfoEvent} message callback
68      *
69      * @param event
70      */
71     void secureArmInfoEvent(SecureArmInfoEvent event);
72
73     /**
74      * {@link ZoneActiveEvent} message callback
75      *
76      * @param event
77      */
78     void zoneActiveEvent(ZoneActiveEvent event);
79
80     /**
81      * {@link ZoneUpdateEvent} message callback
82      *
83      * @param event
84      */
85     void zoneUpdateEvent(ZoneUpdateEvent event);
86
87     /**
88      * {@link ZoneAddEvent} message callback
89      *
90      * @param event
91      */
92     void zoneAddEvent(ZoneAddEvent event);
93 }