]> git.basschouten.com Git - openhab-addons.git/blob
8ae35740f30e7b5e7c5c1def16f662065a46220e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.nikohomecontrol.internal.protocol.nhc1;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Class {@link NhcMessageBase1} used as base class for output from gson for cmd or event feedback from Niko Home
19  * Control. This class only contains the common base fields required for the deserializer
20  * {@link NikoHomeControlMessageDeserializer1} to select the specific formats implemented in {@link NhcMessageMap1},
21  * {@link NhcMessageListMap1}, {@link NhcMessageCmd1}.
22  * <p>
23  *
24  * @author Mark Herwege - Initial Contribution
25  */
26 @NonNullByDefault
27 abstract class NhcMessageBase1 {
28
29     private String cmd = "";
30     private String event = "";
31
32     String getCmd() {
33         return cmd;
34     }
35
36     void setCmd(String cmd) {
37         this.cmd = cmd;
38     }
39
40     String getEvent() {
41         return event;
42     }
43
44     void setEvent(String event) {
45         this.event = event;
46     }
47 }