2 * Copyright (c) 2010-2022 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.velbus.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link VelbusClockAlarm} represents a class that contains the state representation of a velbus clock alarm.
20 * @author Cedric Boon - Initial contribution
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;
31 public VelbusClockAlarm() {
35 this.wakeupMinute = 0;
36 this.bedtimeHour = 23;
37 this.bedtimeMinute = 0;
40 public boolean isEnabled() {
44 public boolean isLocal() {
48 public void setEnabled(boolean value) {
52 public void setLocal(boolean value) {
56 public byte getWakeupHour() {
57 return this.wakeupHour;
60 public void setWakeupHour(byte value) {
61 this.wakeupHour = value;
64 public byte getWakeupMinute() {
65 return this.wakeupMinute;
68 public void setWakeupMinute(byte value) {
69 this.wakeupMinute = value;
72 public byte getBedtimeHour() {
73 return this.bedtimeHour;
76 public void setBedtimeHour(byte value) {
77 this.bedtimeHour = value;
80 public byte getBedtimeMinute() {
81 return this.bedtimeMinute;
84 public void setBedtimeMinute(byte value) {
85 this.bedtimeMinute = value;