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