]> git.basschouten.com Git - openhab-addons.git/blob
593d7a54b974f7a0fed410462e5cc9a588035e12
[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.pioneeravr.internal.protocol.event;
14
15 import org.openhab.binding.pioneeravr.internal.protocol.avr.AvrConnection;
16
17 /**
18  * The event fired when a status is received from the AVR.
19  *
20  * @author Antoine Besnard - Initial contribution
21  */
22 public class AvrStatusUpdateEvent {
23
24     private AvrConnection connection;
25     private String data;
26
27     public AvrStatusUpdateEvent(AvrConnection connection, String data) {
28         this.connection = connection;
29         this.data = data;
30     }
31
32     public AvrConnection getConnection() {
33         return connection;
34     }
35
36     public String getData() {
37         return data;
38     }
39 }