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