]> git.basschouten.com Git - openhab-addons.git/blob
7c22c73bb779ecfa38ecc6c334b3e90f70ff07e6
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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 /**
18  * Event for state received from the Visonic alarm panel
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class PowermaxStateEvent extends EventObject {
23
24     private static final long serialVersionUID = 1L;
25     private PowermaxState state;
26
27     public PowermaxStateEvent(Object source, PowermaxState state) {
28         super(source);
29         this.state = state;
30     }
31
32     /**
33      * @return the state object built from the received message
34      */
35     public PowermaxState getState() {
36         return state;
37     }
38 }