]> git.basschouten.com Git - openhab-addons.git/blob
ade03da2927b2e2bc62dde94c68750ca29fb2666
[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.velbus.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link VelbusClockAlarm} represents a class that contains the state representation of a velbus clock alarm.
19  *
20  * @author Cedric Boon - Initial contribution
21  */
22 @NonNullByDefault
23 public class VelbusClockAlarm {
24     private boolean enabled;
25     private boolean isLocal;
26     private byte wakeupHour;
27     private byte wakeupMinute;
28     private byte bedtimeHour;
29     private byte bedtimeMinute;
30
31     public VelbusClockAlarm() {
32         this.enabled = true;
33         this.isLocal = true;
34         this.wakeupHour = 7;
35         this.wakeupMinute = 0;
36         this.bedtimeHour = 23;
37         this.bedtimeMinute = 0;
38     }
39
40     public boolean isEnabled() {
41         return this.enabled;
42     }
43
44     public boolean isLocal() {
45         return this.isLocal;
46     }
47
48     public void setEnabled(boolean value) {
49         this.enabled = value;
50     }
51
52     public void setLocal(boolean value) {
53         this.isLocal = value;
54     }
55
56     public byte getWakeupHour() {
57         return this.wakeupHour;
58     }
59
60     public void setWakeupHour(byte value) {
61         this.wakeupHour = value;
62     }
63
64     public byte getWakeupMinute() {
65         return this.wakeupMinute;
66     }
67
68     public void setWakeupMinute(byte value) {
69         this.wakeupMinute = value;
70     }
71
72     public byte getBedtimeHour() {
73         return this.bedtimeHour;
74     }
75
76     public void setBedtimeHour(byte value) {
77         this.bedtimeHour = value;
78     }
79
80     public byte getBedtimeMinute() {
81         return this.bedtimeMinute;
82     }
83
84     public void setBedtimeMinute(byte value) {
85         this.bedtimeMinute = value;
86     }
87 }