]> git.basschouten.com Git - openhab-addons.git/blob
48d5936a238f336a02a53647612e872d00c63905
[openhab-addons.git] /
1 /**
2  * Copyright 2017-2018 Gregory Moyer and contributors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openhab.binding.lametrictime.api.local.model;
17
18 import java.util.List;
19
20 public class NotificationModel
21 {
22     private Integer cycles;
23     private List<Frame> frames;
24     private Sound sound;
25
26     public Integer getCycles()
27     {
28         return cycles;
29     }
30
31     public void setCycles(Integer cycles)
32     {
33         this.cycles = cycles;
34     }
35
36     public NotificationModel withCycles(Integer cycles)
37     {
38         this.cycles = cycles;
39         return this;
40     }
41
42     public List<Frame> getFrames()
43     {
44         return frames;
45     }
46
47     public void setFrames(List<Frame> frames)
48     {
49         this.frames = frames;
50     }
51
52     public NotificationModel withFrames(List<Frame> frames)
53     {
54         this.frames = frames;
55         return this;
56     }
57
58     public Sound getSound()
59     {
60         return sound;
61     }
62
63     public void setSound(Sound sound)
64     {
65         this.sound = sound;
66     }
67
68     public NotificationModel withSound(Sound sound)
69     {
70         this.sound = sound;
71         return this;
72     }
73
74     @Override
75     public String toString()
76     {
77         StringBuilder builder = new StringBuilder();
78         builder.append("NotificationModel [cycles=");
79         builder.append(cycles);
80         builder.append(", frames=");
81         builder.append(frames);
82         builder.append(", sound=");
83         builder.append(sound);
84         builder.append("]");
85         return builder.toString();
86     }
87 }