]> git.basschouten.com Git - openhab-addons.git/blob
e510c93f1f2ff8f7de8a1516dcc8ea28843af3f0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.hyperion.internal.protocol.ng;
14
15 import org.openhab.binding.hyperion.internal.protocol.HyperionCommand;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link ComponentStateCommand} is a POJO for sending a Component State command
21  * to the Hyperion.ng server.
22  *
23  * @author Daniel Walters - Initial contribution
24  */
25 public class ComponentStateCommand extends HyperionCommand {
26
27     private static final String NAME = "componentstate";
28
29     @SerializedName("componentstate")
30     private ComponentState componentState;
31
32     public ComponentStateCommand(ComponentState componentState) {
33         super(NAME);
34         setComponentState(componentState);
35     }
36
37     public ComponentState getComponentState() {
38         return componentState;
39     }
40
41     public void setComponentState(ComponentState componentState) {
42         this.componentState = componentState;
43     }
44 }