2 * Copyright (c) 2010-2022 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;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Class {@link NhcMessageCmd1} used as input to gson to send commands to Niko Home Control. Extends
19 * {@link NhcMessageBase1}.
21 * Example: <code>{"cmd":"executeactions","id":1,"value1":0}</code>
23 * @author Mark Herwege - Initial Contribution
25 @SuppressWarnings("unused")
27 class NhcMessageCmd1 extends NhcMessageBase1 {
35 private String overruletime = "";
37 NhcMessageCmd1(String cmd) {
41 NhcMessageCmd1(String cmd, int id) {
46 NhcMessageCmd1(String cmd, int id, int value1) {
51 NhcMessageCmd1(String cmd, int id, int value1, int value2, int value3) {
52 this(cmd, id, value1);
57 NhcMessageCmd1 withMode(int mode) {
62 NhcMessageCmd1 withOverrule(int overrule) {
63 this.overrule = overrule;
67 NhcMessageCmd1 withOverruletime(String overruletime) {
68 this.overruletime = overruletime;