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;
15 import org.openhab.binding.hyperion.internal.protocol.v1.Effect;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link EffectCommand} is a POJO for sending an effect command
21 * to the Hyperion server.
23 * @author Daniel Walters - Initial contribution
25 public class EffectCommand extends HyperionCommand {
27 private static final String NAME = "effect";
29 @SerializedName("origin")
30 private String origin;
32 @SerializedName("effect")
33 private Effect effect;
35 @SerializedName("priority")
38 public EffectCommand(Effect effect, int priority) {
41 setPriority(priority);
44 public Effect getEffect() {
48 public void setEffect(Effect effect) {
52 public int getPriority() {
56 public void setPriority(int priority) {
57 this.priority = priority;
60 public void setOrigin(String origin) {
64 public String getOrigin() {