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