]> git.basschouten.com Git - openhab-addons.git/blob
d7e951f8eaa0cca644b4bb6f741f81eab61103e1
[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 device.
17  *
18  * @author Gregory Moyer - Initial contribution
19  */
20 public class Device {
21     private Audio audio;
22     private Bluetooth bluetooth;
23     private Display display;
24     private String id;
25     private String mode;
26     private String model;
27     private String name;
28     private String osVersion;
29     private String serialNumber;
30     private Wifi wifi;
31
32     public Audio getAudio() {
33         return audio;
34     }
35
36     public void setAudio(Audio audio) {
37         this.audio = audio;
38     }
39
40     public Device withAudio(Audio audio) {
41         this.audio = audio;
42         return this;
43     }
44
45     public Bluetooth getBluetooth() {
46         return bluetooth;
47     }
48
49     public void setBluetooth(Bluetooth bluetooth) {
50         this.bluetooth = bluetooth;
51     }
52
53     public Device withBluetooth(Bluetooth bluetooth) {
54         this.bluetooth = bluetooth;
55         return this;
56     }
57
58     public Display getDisplay() {
59         return display;
60     }
61
62     public void setDisplay(Display display) {
63         this.display = display;
64     }
65
66     public Device withDisplay(Display display) {
67         this.display = display;
68         return this;
69     }
70
71     public String getId() {
72         return id;
73     }
74
75     public void setId(String id) {
76         this.id = id;
77     }
78
79     public Device withId(String id) {
80         this.id = id;
81         return this;
82     }
83
84     public String getMode() {
85         return mode;
86     }
87
88     public void setMode(String mode) {
89         this.mode = mode;
90     }
91
92     public Device withMode(String mode) {
93         this.mode = mode;
94         return this;
95     }
96
97     public String getModel() {
98         return model;
99     }
100
101     public void setModel(String model) {
102         this.model = model;
103     }
104
105     public Device withModel(String model) {
106         this.model = model;
107         return this;
108     }
109
110     public String getName() {
111         return name;
112     }
113
114     public void setName(String name) {
115         this.name = name;
116     }
117
118     public Device withName(String name) {
119         this.name = name;
120         return this;
121     }
122
123     public String getOsVersion() {
124         return osVersion;
125     }
126
127     public void setOsVersion(String osVersion) {
128         this.osVersion = osVersion;
129     }
130
131     public Device withOsVersion(String osVersion) {
132         this.osVersion = osVersion;
133         return this;
134     }
135
136     public String getSerialNumber() {
137         return serialNumber;
138     }
139
140     public void setSerialNumber(String serialNumber) {
141         this.serialNumber = serialNumber;
142     }
143
144     public Device withSerialNumber(String serialNumber) {
145         this.serialNumber = serialNumber;
146         return this;
147     }
148
149     public Wifi getWifi() {
150         return wifi;
151     }
152
153     public void setWifi(Wifi wifi) {
154         this.wifi = wifi;
155     }
156
157     public Device withWifi(Wifi wifi) {
158         this.wifi = wifi;
159         return this;
160     }
161
162     @Override
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=");
172         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);
185         builder.append("]");
186         return builder.toString();
187     }
188 }