]> git.basschouten.com Git - openhab-addons.git/blob
e0fe6343e7926947ca5eeb162e1e91ef97389fc3
[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 public class Sound
19 {
20     private String category;
21     private String id;
22     private Integer repeat;
23
24     public String getCategory()
25     {
26         return category;
27     }
28
29     public void setCategory(String category)
30     {
31         this.category = category;
32     }
33
34     public Sound withCategory(String category)
35     {
36         this.category = category;
37         return this;
38     }
39
40     public String getId()
41     {
42         return id;
43     }
44
45     public void setId(String id)
46     {
47         this.id = id;
48     }
49
50     public Sound withId(String id)
51     {
52         this.id = id;
53         return this;
54     }
55
56     public Integer getRepeat()
57     {
58         return repeat;
59     }
60
61     public void setRepeat(Integer repeat)
62     {
63         this.repeat = repeat;
64     }
65
66     public Sound withRepeat(Integer repeat)
67     {
68         this.repeat = repeat;
69         return this;
70     }
71
72     @Override
73     public String toString()
74     {
75         StringBuilder builder = new StringBuilder();
76         builder.append("Sound [category=");
77         builder.append(category);
78         builder.append(", id=");
79         builder.append(id);
80         builder.append(", repeat=");
81         builder.append(repeat);
82         builder.append("]");
83         return builder.toString();
84     }
85 }