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.pilight.internal.dto;
16 * This message is sent when we want to change the state of a device or request the
17 * current configuration in pilight.
19 * @author Jeroen Idserda - Initial contribution
20 * @author Stefan Röllin - Port to openHAB 2 pilight binding
21 * @author Niklas Dörfler - Port pilight binding to openHAB 3 + add device discovery
25 public static final String ACTION_SEND = "send";
27 public static final String ACTION_CONTROL = "control";
29 public static final String ACTION_REQUEST_CONFIG = "request config";
31 public static final String ACTION_REQUEST_VALUES = "request values";
33 private String action;
37 private Options options;
39 public Action(String action) {
43 public String getAction() {
47 public void setAction(String action) {
51 public Code getCode() {
55 public void setCode(Code code) {
59 public Options getOptions() {
63 public void setOptions(Options options) {
64 this.options = options;