2 * Copyright (c) 2010-2023 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.hyperion.internal.protocol.ng;
15 import org.openhab.binding.hyperion.internal.protocol.HyperionCommand;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link ComponentStateCommand} is a POJO for sending a Component State command
21 * to the Hyperion.ng server.
23 * @author Daniel Walters - Initial contribution
25 public class ComponentStateCommand extends HyperionCommand {
27 private static final String NAME = "componentstate";
29 @SerializedName("componentstate")
30 private ComponentState componentState;
32 public ComponentStateCommand(ComponentState componentState) {
34 setComponentState(componentState);
37 public ComponentState getComponentState() {
38 return componentState;
41 public void setComponentState(ComponentState componentState) {
42 this.componentState = componentState;