]> git.basschouten.com Git - openhab-addons.git/blob
b7d3dc2bf8592b2eb03b3f9d948936f8c27b821a
[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.powermax.internal.state;
14
15 import java.util.EventObject;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * Event for state received from the Visonic alarm panel
21  *
22  * @author Laurent Garnier - Initial contribution
23  */
24 @NonNullByDefault
25 public class PowermaxStateEvent extends EventObject {
26
27     private static final long serialVersionUID = 1L;
28     private final PowermaxState state;
29
30     public PowermaxStateEvent(Object source, PowermaxState state) {
31         super(source);
32         this.state = state;
33     }
34
35     /**
36      * @return the state object built from the received message
37      */
38     public PowermaxState getState() {
39         return state;
40     }
41 }