]> git.basschouten.com Git - openhab-addons.git/blob
61ca40a44f9e0751f88900edb6010db2790c96a6
[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 Device
19 {
20     private Audio audio;
21     private Bluetooth bluetooth;
22     private Display display;
23     private String id;
24     private String mode;
25     private String model;
26     private String name;
27     private String osVersion;
28     private String serialNumber;
29     private Wifi wifi;
30
31     public Audio getAudio()
32     {
33         return audio;
34     }
35
36     public void setAudio(Audio audio)
37     {
38         this.audio = audio;
39     }
40
41     public Device withAudio(Audio audio)
42     {
43         this.audio = audio;
44         return this;
45     }
46
47     public Bluetooth getBluetooth()
48     {
49         return bluetooth;
50     }
51
52     public void setBluetooth(Bluetooth bluetooth)
53     {
54         this.bluetooth = bluetooth;
55     }
56
57     public Device withBluetooth(Bluetooth bluetooth)
58     {
59         this.bluetooth = bluetooth;
60         return this;
61     }
62
63     public Display getDisplay()
64     {
65         return display;
66     }
67
68     public void setDisplay(Display display)
69     {
70         this.display = display;
71     }
72
73     public Device withDisplay(Display display)
74     {
75         this.display = display;
76         return this;
77     }
78
79     public String getId()
80     {
81         return id;
82     }
83
84     public void setId(String id)
85     {
86         this.id = id;
87     }
88
89     public Device withId(String id)
90     {
91         this.id = id;
92         return this;
93     }
94
95     public String getMode()
96     {
97         return mode;
98     }
99
100     public void setMode(String mode)
101     {
102         this.mode = mode;
103     }
104
105     public Device withMode(String mode)
106     {
107         this.mode = mode;
108         return this;
109     }
110
111     public String getModel()
112     {
113         return model;
114     }
115
116     public void setModel(String model)
117     {
118         this.model = model;
119     }
120
121     public Device withModel(String model)
122     {
123         this.model = model;
124         return this;
125     }
126
127     public String getName()
128     {
129         return name;
130     }
131
132     public void setName(String name)
133     {
134         this.name = name;
135     }
136
137     public Device withName(String name)
138     {
139         this.name = name;
140         return this;
141     }
142
143     public String getOsVersion()
144     {
145         return osVersion;
146     }
147
148     public void setOsVersion(String osVersion)
149     {
150         this.osVersion = osVersion;
151     }
152
153     public Device withOsVersion(String osVersion)
154     {
155         this.osVersion = osVersion;
156         return this;
157     }
158
159     public String getSerialNumber()
160     {
161         return serialNumber;
162     }
163
164     public void setSerialNumber(String serialNumber)
165     {
166         this.serialNumber = serialNumber;
167     }
168
169     public Device withSerialNumber(String serialNumber)
170     {
171         this.serialNumber = serialNumber;
172         return this;
173     }
174
175     public Wifi getWifi()
176     {
177         return wifi;
178     }
179
180     public void setWifi(Wifi wifi)
181     {
182         this.wifi = wifi;
183     }
184
185     public Device withWifi(Wifi wifi)
186     {
187         this.wifi = wifi;
188         return this;
189     }
190
191     @Override
192     public String toString()
193     {
194         StringBuilder builder = new StringBuilder();
195         builder.append("Device [audio=");
196         builder.append(audio);
197         builder.append(", bluetooth=");
198         builder.append(bluetooth);
199         builder.append(", display=");
200         builder.append(display);
201         builder.append(", id=");
202         builder.append(id);
203         builder.append(", mode=");
204         builder.append(mode);
205         builder.append(", model=");
206         builder.append(model);
207         builder.append(", name=");
208         builder.append(name);
209         builder.append(", osVersion=");
210         builder.append(osVersion);
211         builder.append(", serialNumber=");
212         builder.append(serialNumber);
213         builder.append(", wifi=");
214         builder.append(wifi);
215         builder.append("]");
216         return builder.toString();
217     }
218 }