]> git.basschouten.com Git - openhab-addons.git/blob
da8e3201f3711b809013bb5b920e4c3950fa1363
[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.nanoleaf.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Represents rhythm module settings
20  *
21  * @author Martin Raepple - Initial contribution
22  */
23 @NonNullByDefault
24 public class Rhythm {
25
26     private boolean rhythmConnected;
27     private boolean rhythmActive;
28     private int rhythmId;
29     private String hardwareVersion = "";
30     private String firmwareVersion = "";
31     private boolean auxAvailable;
32     private int rhythmMode;
33     private @Nullable RhythmPos rhythmPos;
34
35     public boolean getRhythmConnected() {
36         return rhythmConnected;
37     }
38
39     public void setRhythmConnected(boolean rhythmConnected) {
40         this.rhythmConnected = rhythmConnected;
41     }
42
43     public boolean getRhythmActive() {
44         return rhythmActive;
45     }
46
47     public void setRhythmActive(boolean rhythmActive) {
48         this.rhythmActive = rhythmActive;
49     }
50
51     public int getRhythmId() {
52         return rhythmId;
53     }
54
55     public void setRhythmId(int rhythmId) {
56         this.rhythmId = rhythmId;
57     }
58
59     public String getHardwareVersion() {
60         return this.hardwareVersion;
61     }
62
63     public void setHardwareVersion(String hardwareVersion) {
64         this.hardwareVersion = hardwareVersion;
65     }
66
67     public String getFirmwareVersion() {
68         return this.firmwareVersion;
69     }
70
71     public void setFirmwareVersion(String firmwareVersion) {
72         this.firmwareVersion = firmwareVersion;
73     }
74
75     public boolean getAuxAvailable() {
76         return auxAvailable;
77     }
78
79     public void setAuxAvailable(boolean auxAvailable) {
80         this.auxAvailable = auxAvailable;
81     }
82
83     public int getRhythmMode() {
84         return rhythmMode;
85     }
86
87     public void setRhythmMode(int rhythmMode) {
88         this.rhythmMode = rhythmMode;
89     }
90
91     public @Nullable RhythmPos getRhythmPos() {
92         return rhythmPos;
93     }
94
95     public void setRhythmPos(RhythmPos rhythmPos) {
96         this.rhythmPos = rhythmPos;
97     }
98 }