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