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