2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
18 * @author Gregory Moyer - Initial contribution
22 private Bluetooth bluetooth;
23 private Display display;
28 private String osVersion;
29 private String serialNumber;
32 public Audio getAudio() {
36 public void setAudio(Audio audio) {
40 public Device withAudio(Audio audio) {
45 public Bluetooth getBluetooth() {
49 public void setBluetooth(Bluetooth bluetooth) {
50 this.bluetooth = bluetooth;
53 public Device withBluetooth(Bluetooth bluetooth) {
54 this.bluetooth = bluetooth;
58 public Display getDisplay() {
62 public void setDisplay(Display display) {
63 this.display = display;
66 public Device withDisplay(Display display) {
67 this.display = display;
71 public String getId() {
75 public void setId(String id) {
79 public Device withId(String id) {
84 public String getMode() {
88 public void setMode(String mode) {
92 public Device withMode(String mode) {
97 public String getModel() {
101 public void setModel(String model) {
105 public Device withModel(String model) {
110 public String getName() {
114 public void setName(String name) {
118 public Device withName(String name) {
123 public String getOsVersion() {
127 public void setOsVersion(String osVersion) {
128 this.osVersion = osVersion;
131 public Device withOsVersion(String osVersion) {
132 this.osVersion = osVersion;
136 public String getSerialNumber() {
140 public void setSerialNumber(String serialNumber) {
141 this.serialNumber = serialNumber;
144 public Device withSerialNumber(String serialNumber) {
145 this.serialNumber = serialNumber;
149 public Wifi getWifi() {
153 public void setWifi(Wifi wifi) {
157 public Device withWifi(Wifi wifi) {
163 public String toString() {
164 StringBuilder builder = new StringBuilder();
165 builder.append("Device [audio=");
166 builder.append(audio);
167 builder.append(", bluetooth=");
168 builder.append(bluetooth);
169 builder.append(", display=");
170 builder.append(display);
171 builder.append(", id=");
173 builder.append(", mode=");
174 builder.append(mode);
175 builder.append(", model=");
176 builder.append(model);
177 builder.append(", name=");
178 builder.append(name);
179 builder.append(", osVersion=");
180 builder.append(osVersion);
181 builder.append(", serialNumber=");
182 builder.append(serialNumber);
183 builder.append(", wifi=");
184 builder.append(wifi);
186 return builder.toString();