2 * Copyright 2017-2018 Gregory Moyer and contributors.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openhab.binding.lametrictime.api.local.model;
21 private Bluetooth bluetooth;
22 private Display display;
27 private String osVersion;
28 private String serialNumber;
31 public Audio getAudio()
36 public void setAudio(Audio audio)
41 public Device withAudio(Audio audio)
47 public Bluetooth getBluetooth()
52 public void setBluetooth(Bluetooth bluetooth)
54 this.bluetooth = bluetooth;
57 public Device withBluetooth(Bluetooth bluetooth)
59 this.bluetooth = bluetooth;
63 public Display getDisplay()
68 public void setDisplay(Display display)
70 this.display = display;
73 public Device withDisplay(Display display)
75 this.display = display;
84 public void setId(String id)
89 public Device withId(String id)
95 public String getMode()
100 public void setMode(String mode)
105 public Device withMode(String mode)
111 public String getModel()
116 public void setModel(String model)
121 public Device withModel(String model)
127 public String getName()
132 public void setName(String name)
137 public Device withName(String name)
143 public String getOsVersion()
148 public void setOsVersion(String osVersion)
150 this.osVersion = osVersion;
153 public Device withOsVersion(String osVersion)
155 this.osVersion = osVersion;
159 public String getSerialNumber()
164 public void setSerialNumber(String serialNumber)
166 this.serialNumber = serialNumber;
169 public Device withSerialNumber(String serialNumber)
171 this.serialNumber = serialNumber;
175 public Wifi getWifi()
180 public void setWifi(Wifi wifi)
185 public Device withWifi(Wifi wifi)
192 public String toString()
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=");
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);
216 return builder.toString();