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.qbus.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Class {@link QbusMessageCmd} used as input to gson to send commands to Qbus. Extends
19 * {@link QbusMessageBase}.
21 * Example: <code>{"cmd":"executebistabiel","id":1,"value1":0}</code>
23 * @author Koen Schockaert - Initial Contribution
27 class QbusMessageCmd extends QbusMessageBase {
29 QbusMessageCmd(String CTD) {
33 QbusMessageCmd(String CTD, String cmd) {
38 QbusMessageCmd withId(Integer id) {
43 QbusMessageCmd withState(int state) {
48 QbusMessageCmd withMode(int mode) {
53 QbusMessageCmd withSetPoint(Double setpoint) {
54 this.setSetPoint(setpoint);
58 QbusMessageCmd withSlatState(int slatState) {
59 this.setSlatState(slatState);