]> git.basschouten.com Git - openhab-addons.git/blob
057812a32407e8f5b959a9cd03ed8e6343db4e80
[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 Display
19 {
20     private Integer brightness;
21     private String brightnessMode;
22     private Integer height;
23     private Screensaver screensaver;
24     private String type;
25     private Integer width;
26
27     public Integer getBrightness()
28     {
29         return brightness;
30     }
31
32     public void setBrightness(Integer brightness)
33     {
34         this.brightness = brightness;
35     }
36
37     public Display withBrightness(Integer brightness)
38     {
39         this.brightness = brightness;
40         return this;
41     }
42
43     public String getBrightnessMode()
44     {
45         return brightnessMode;
46     }
47
48     public void setBrightnessMode(String brightnessMode)
49     {
50         this.brightnessMode = brightnessMode;
51     }
52
53     public Display withBrightnessMode(String brightnessMode)
54     {
55         this.brightnessMode = brightnessMode;
56         return this;
57     }
58
59     public Integer getHeight()
60     {
61         return height;
62     }
63
64     public void setHeight(Integer height)
65     {
66         this.height = height;
67     }
68
69     public Display withHeight(Integer height)
70     {
71         this.height = height;
72         return this;
73     }
74
75     public Screensaver getScreensaver()
76     {
77         return screensaver;
78     }
79
80     public void setScreensaver(Screensaver screensaver)
81     {
82         this.screensaver = screensaver;
83     }
84
85     public Display withScreensaver(Screensaver screensaver)
86     {
87         this.screensaver = screensaver;
88         return this;
89     }
90
91     public String getType()
92     {
93         return type;
94     }
95
96     public void setType(String type)
97     {
98         this.type = type;
99     }
100
101     public Display withType(String type)
102     {
103         this.type = type;
104         return this;
105     }
106
107     public Integer getWidth()
108     {
109         return width;
110     }
111
112     public void setWidth(Integer width)
113     {
114         this.width = width;
115     }
116
117     public Display withWidth(Integer width)
118     {
119         this.width = width;
120         return this;
121     }
122
123     @Override
124     public String toString()
125     {
126         StringBuilder builder = new StringBuilder();
127         builder.append("Display [brightness=");
128         builder.append(brightness);
129         builder.append(", brightnessMode=");
130         builder.append(brightnessMode);
131         builder.append(", height=");
132         builder.append(height);
133         builder.append(", screensaver=");
134         builder.append(screensaver);
135         builder.append(", type=");
136         builder.append(type);
137         builder.append(", width=");
138         builder.append(width);
139         builder.append("]");
140         return builder.toString();
141     }
142 }