]> git.basschouten.com Git - openhab-addons.git/blob
923cb2205cd4bd69373615b5ffc73a305b2ea78b
[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 Screensaver
19 {
20     private Boolean enabled;
21     private Modes modes;
22     private String widget;
23
24     public Boolean isEnabled()
25     {
26         return enabled;
27     }
28
29     public void setEnabled(Boolean enabled)
30     {
31         this.enabled = enabled;
32     }
33
34     public Screensaver withEnabled(Boolean enabled)
35     {
36         this.enabled = enabled;
37         return this;
38     }
39
40     public Modes getModes()
41     {
42         return modes;
43     }
44
45     public void setModes(Modes modes)
46     {
47         this.modes = modes;
48     }
49
50     public Screensaver withModes(Modes modes)
51     {
52         this.modes = modes;
53         return this;
54     }
55
56     public String getWidget()
57     {
58         return widget;
59     }
60
61     public void setWidget(String widget)
62     {
63         this.widget = widget;
64     }
65
66     public Screensaver withWidget(String widget)
67     {
68         this.widget = widget;
69         return this;
70     }
71
72     @Override
73     public String toString()
74     {
75         StringBuilder builder = new StringBuilder();
76         builder.append("Screensaver [enabled=");
77         builder.append(enabled);
78         builder.append(", modes=");
79         builder.append(modes);
80         builder.append(", widget=");
81         builder.append(widget);
82         builder.append("]");
83         return builder.toString();
84     }
85 }