]> git.basschouten.com Git - openhab-addons.git/blob
20c89e34dfce815225bedfe9b07f758463fe28ad
[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.digiplex.internal.communication.events;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.digiplex.internal.communication.DigiplexMessageHandler;
17
18 /**
19  * Message providing information about special alarm events
20  *
21  * @author Robert Michalak - Initial contribution
22  *
23  */
24 @NonNullByDefault
25 public class SpecialAlarmEvent extends AbstractEvent {
26
27     private SpecialAlarmType type;
28
29     public SpecialAlarmEvent(int areaNo, SpecialAlarmType type) {
30         super(areaNo);
31         this.type = type;
32     }
33
34     public SpecialAlarmType getType() {
35         return type;
36     }
37
38     @Override
39     public void accept(DigiplexMessageHandler visitor) {
40         visitor.handleSpecialAlarmEvent(this);
41     }
42 }