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.nanoleaf.internal.model;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
22 * Represents write command to set solid color effect
24 * @author Martin Raepple - Initial contribution
25 * @author Stefan Höhn - Made colorType nullable
30 private String command = "";
31 private String animType = "";
32 private String animName = "";
33 private List<Palette> palette = new ArrayList<>();
35 private String colorType; // is required to be null if not set!
36 private String animData = "";
37 private boolean loop = false;
39 public String getCommand() {
43 public void setCommand(String command) {
44 this.command = command;
47 public String getAnimType() {
51 public void setAnimType(String animType) {
52 this.animType = animType;
55 public List<Palette> getPalette() {
59 public void setPalette(List<Palette> palette) {
60 this.palette = palette;
63 public @Nullable String getColorType() {
67 public void setColorType(String colorType) {
68 this.colorType = colorType;
71 public String getAnimData() {
75 public void setAnimData(String animData) {
76 this.animData = animData;
79 public boolean getLoop() {
83 public void setLoop(boolean loop) {
87 public String getAnimName() {
91 public void setAnimName(String animName) {
92 this.animName = animName;