]> git.basschouten.com Git - openhab-addons.git/blob
4d6b8f76f4ce093fb3272874874fab6335de1be8
[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.monopriceaudio.internal.communication;
14
15 import java.util.EventObject;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * MonopriceAudio event used to notify changes coming from messages received from the MonopriceAudio device
21  *
22  * @author Michael Lobstein - Initial contribution
23  */
24 @NonNullByDefault
25 public class MonopriceAudioMessageEvent extends EventObject {
26
27     private static final long serialVersionUID = 1L;
28     private final String key;
29     private final String value;
30
31     public MonopriceAudioMessageEvent(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 }