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