]> git.basschouten.com Git - openhab-addons.git/blob
c9e76d27e069fff1d60706b14fe6b0e6d0e4540c
[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.radiothermostat.internal.communication;
14
15 import java.util.EventObject;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * RadioThermostatEvent used to pass json update data received from the thermostat
21  *
22  * @author Michael Lobstein - Initial contribution
23  */
24 @NonNullByDefault
25 public class RadioThermostatEvent extends EventObject {
26
27     private static final long serialVersionUID = 1L;
28     private String key;
29     private String value;
30
31     public RadioThermostatEvent(Object source, String key, String value) {
32         super(source);
33         this.key = key;
34         this.value = value;
35     }
36
37     public String getKey() {
38         return key;
39     }
40
41     public String getValue() {
42         return value;
43     }
44 }