]> git.basschouten.com Git - openhab-addons.git/blob
1282ad9fc54011fe97fb71561407fb82e897987c
[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 Audio
19 {
20     private Integer volume;
21
22     public Integer getVolume()
23     {
24         return volume;
25     }
26
27     public void setVolume(Integer volume)
28     {
29         this.volume = volume;
30     }
31
32     public Audio withVolume(Integer volume)
33     {
34         this.volume = volume;
35         return this;
36     }
37
38     @Override
39     public String toString()
40     {
41         StringBuilder builder = new StringBuilder();
42         builder.append("Audio [volume=");
43         builder.append(volume);
44         builder.append("]");
45         return builder.toString();
46     }
47 }