2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.nikohomecontrol.internal.protocol.nhc1;
16 * Class {@link NhcMessageCmd1} used as input to gson to send commands to Niko Home Control. Extends
17 * {@link NhcMessageBase1}.
19 * Example: <code>{"cmd":"executeactions","id":1,"value1":0}</code>
21 * @author Mark Herwege - Initial Contribution
23 @SuppressWarnings("unused")
24 class NhcMessageCmd1 extends NhcMessageBase1 {
32 private String overruletime;
34 NhcMessageCmd1(String cmd) {
38 NhcMessageCmd1(String cmd, int id) {
43 NhcMessageCmd1(String cmd, int id, int value1) {
48 NhcMessageCmd1(String cmd, int id, int value1, int value2, int value3) {
49 this(cmd, id, value1);
54 NhcMessageCmd1 withMode(int mode) {
59 NhcMessageCmd1 withOverrule(int overrule) {
60 this.overrule = overrule;
64 NhcMessageCmd1 withOverruletime(String overruletime) {
65 this.overruletime = overruletime;