]> git.basschouten.com Git - openhab-addons.git/blob
0e7dbaa34a19319fce02d114ed53aaafc9d3c1af
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.nanoleaf.internal.model;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20
21 /**
22  * Represents write command to set solid color effect
23  *
24  * @author Martin Raepple - Initial contribution
25  * @author Stefan Höhn - Made colorType nullable
26  */
27 @NonNullByDefault
28 public class Write {
29
30     private String command = "";
31     private String animType = "";
32     private String animName = "";
33     private List<Palette> palette = new ArrayList<>();
34     @Nullable
35     private String colorType; // is required to be null if not set!
36     private String animData = "";
37     private boolean loop = false;
38
39     public String getCommand() {
40         return command;
41     }
42
43     public void setCommand(String command) {
44         this.command = command;
45     }
46
47     public String getAnimType() {
48         return animType;
49     }
50
51     public void setAnimType(String animType) {
52         this.animType = animType;
53     }
54
55     public List<Palette> getPalette() {
56         return palette;
57     }
58
59     public void setPalette(List<Palette> palette) {
60         this.palette = palette;
61     }
62
63     public @Nullable String getColorType() {
64         return colorType;
65     }
66
67     public void setColorType(String colorType) {
68         this.colorType = colorType;
69     }
70
71     public String getAnimData() {
72         return animData;
73     }
74
75     public void setAnimData(String animData) {
76         this.animData = animData;
77     }
78
79     public boolean getLoop() {
80         return loop;
81     }
82
83     public void setLoop(boolean loop) {
84         this.loop = loop;
85     }
86
87     public String getAnimName() {
88         return animName;
89     }
90
91     public void setAnimName(String animName) {
92         this.animName = animName;
93     }
94 }