]> git.basschouten.com Git - openhab-addons.git/blob
1be01be5e979e9038518ebe2149bdde34f980c3a
[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.lametrictime.internal.api.local.dto;
14
15 import java.util.List;
16
17 /**
18  * Pojo for notification model.
19  *
20  * @author Gregory Moyer - Initial contribution
21  */
22 public class NotificationModel {
23     private Integer cycles;
24     private List<Frame> frames;
25     private Sound sound;
26
27     public Integer getCycles() {
28         return cycles;
29     }
30
31     public void setCycles(Integer cycles) {
32         this.cycles = cycles;
33     }
34
35     public NotificationModel withCycles(Integer cycles) {
36         this.cycles = cycles;
37         return this;
38     }
39
40     public List<Frame> getFrames() {
41         return frames;
42     }
43
44     public void setFrames(List<Frame> frames) {
45         this.frames = frames;
46     }
47
48     public NotificationModel withFrames(List<Frame> frames) {
49         this.frames = frames;
50         return this;
51     }
52
53     public Sound getSound() {
54         return sound;
55     }
56
57     public void setSound(Sound sound) {
58         this.sound = sound;
59     }
60
61     public NotificationModel withSound(Sound sound) {
62         this.sound = sound;
63         return this;
64     }
65
66     @Override
67     public String toString() {
68         StringBuilder builder = new StringBuilder();
69         builder.append("NotificationModel [cycles=");
70         builder.append(cycles);
71         builder.append(", frames=");
72         builder.append(frames);
73         builder.append(", sound=");
74         builder.append(sound);
75         builder.append("]");
76         return builder.toString();
77     }
78 }