]> git.basschouten.com Git - openhab-addons.git/blob
12449c688a3cbb61a5dcd176158dd99988cfcbe6
[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.roku.internal.dto;
14
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlRootElement;
19
20 import org.eclipse.jdt.annotation.NonNullByDefault;
21
22 /**
23  * Maps the XML response from the Roku HTTP endpoint '/query/device-info' (Device information)
24  *
25  * @author Michael Lobstein - Initial contribution
26  */
27
28 @NonNullByDefault
29 @XmlAccessorType(XmlAccessType.FIELD)
30 @XmlRootElement(name = "device-info")
31 public class DeviceInfo {
32     @XmlElement(name = "udn")
33     private String udn = "";
34     @XmlElement(name = "serial-number")
35     private String serialNumber = "";
36     @XmlElement(name = "device-id")
37     private String deviceId = "";
38     @XmlElement(name = "advertising-id")
39     private String advertisingId = "";
40     @XmlElement(name = "vendor-name")
41     private String vendorName = "";
42     @XmlElement(name = "model-name")
43     private String modelName = "";
44     @XmlElement(name = "model-number")
45     private String modelNumber = "";
46     @XmlElement(name = "model-region")
47     private String modelRegion = "";
48     @XmlElement(name = "is-tv")
49     private boolean isTv = false;
50     @XmlElement(name = "is-stick")
51     private boolean isStick = false;
52     @XmlElement(name = "ui-resolution")
53     private String uiResolution = "";
54     @XmlElement(name = "supports-ethernet")
55     private boolean supportsEthernet = false;
56     @XmlElement(name = "wifi-mac")
57     private String wifiMac = "";
58     @XmlElement(name = "wifi-driver")
59     private String wifiDriver = "";
60     @XmlElement(name = "has-wifi-extender")
61     private boolean hasWifiExtender = false;
62     @XmlElement(name = "has-wifi-5G-support")
63     private boolean hasWifi5GSupport = false;
64     @XmlElement(name = "can-use-wifi-extender")
65     private boolean canUseWifiExtender = false;
66     @XmlElement(name = "ethernet-mac")
67     private String ethernetMac = "";
68     @XmlElement(name = "network-type")
69     private String networkType = "";
70     @XmlElement(name = "friendly-device-name")
71     private String friendlyDeviceName = "";
72     @XmlElement(name = "friendly-model-name")
73     private String friendlyModelName = "";
74     @XmlElement(name = "default-device-name")
75     private String defaultDeviceName = "";
76     @XmlElement(name = "user-device-name")
77     private String userDeviceName = "";
78     @XmlElement(name = "user-device-location")
79     private String userDeviceLocation = "";
80     @XmlElement(name = "build-number")
81     private String buildNumber = "";
82     @XmlElement(name = "software-version")
83     private String softwareVersion = "";
84     @XmlElement(name = "software-build")
85     private String softwareBuild = "";
86     @XmlElement(name = "secure-device")
87     private boolean secureDevice = false;
88     @XmlElement(name = "language")
89     private String language = "";
90     @XmlElement(name = "country")
91     private String country = "";
92     @XmlElement(name = "locale")
93     private String locale = "";
94     @XmlElement(name = "time-zone-auto")
95     private boolean timeZoneAuto = false;
96     @XmlElement(name = "time-zone")
97     private String timeZone = "";
98     @XmlElement(name = "time-zone-name")
99     private String timeZoneName = "";
100     @XmlElement(name = "time-zone-tz")
101     private String timeZoneTz = "";
102     @XmlElement(name = "time-zone-offset")
103     private int timeZoneOffset = 0;
104     @XmlElement(name = "clock-format")
105     private String clockFormat = "";
106     @XmlElement(name = "uptime")
107     private int uptime = 0;
108     @XmlElement(name = "power-mode")
109     private String powerMode = "";
110     @XmlElement(name = "supports-suspend")
111     private boolean supportsSuspend = false;
112     @XmlElement(name = "supports-find-remote")
113     private boolean supportsFindRemote = false;
114     @XmlElement(name = "find-remote-is-possible")
115     private boolean findRemoteIsPossible = false;
116     @XmlElement(name = "supports-audio-guide")
117     private boolean supportsAudioGuide = false;
118     @XmlElement(name = "supports-rva")
119     private boolean supportsRva = false;
120     @XmlElement(name = "developer-enabled")
121     private boolean developerEnabled = false;
122     @XmlElement(name = "keyed-developer-id")
123     private String keyedDeveloperId = "";
124     @XmlElement(name = "search-enabled")
125     private boolean searchEnabled = false;
126     @XmlElement(name = "search-channels-enabled")
127     private boolean searchChannelsEnabled = false;
128     @XmlElement(name = "voice-search-enabled")
129     private boolean voiceSearchEnabled = false;
130     @XmlElement(name = "notifications-enabled")
131     private boolean notificationsEnabled = false;
132     @XmlElement(name = "notifications-first-use")
133     private boolean notificationsFirstUse = false;
134     @XmlElement(name = "supports-private-listening")
135     private boolean supportsPrivateListening = false;
136     @XmlElement(name = "headphones-connected")
137     private boolean headphonesConnected = false;
138     @XmlElement(name = "supports-ecs-textedit")
139     private boolean supportsEcsTextedit = false;
140     @XmlElement(name = "supports-ecs-microphone")
141     private boolean supportsEcsMicrophone = false;
142     @XmlElement(name = "supports-wake-on-wlan")
143     private boolean supportsWakeOnWlan = false;
144     @XmlElement(name = "has-play-on-roku")
145     private boolean hasPlayOnRoku = false;
146     @XmlElement(name = "has-mobile-screensaver")
147     private boolean hasMobileScreensaver = false;
148     @XmlElement(name = "support-url")
149     private String supportUrl = "";
150     @XmlElement(name = "grandcentral-version")
151     private String grandcentralVersion = "";
152     @XmlElement(name = "trc-version")
153     private String trcVersion = "";
154     @XmlElement(name = "trc-channel-version")
155     private String trcChannelVersion = "";
156     @XmlElement(name = "davinci-version")
157     private String davinciVersion = "";
158
159     public String getUdn() {
160         return udn;
161     }
162
163     public void setUdn(String value) {
164         this.udn = value;
165     }
166
167     public String getSerialNumber() {
168         return serialNumber;
169     }
170
171     public void setSerialNumber(String value) {
172         this.serialNumber = value;
173     }
174
175     public String getDeviceId() {
176         return deviceId;
177     }
178
179     public void setDeviceId(String value) {
180         this.deviceId = value;
181     }
182
183     public String getAdvertisingId() {
184         return advertisingId;
185     }
186
187     public void setAdvertisingId(String value) {
188         this.advertisingId = value;
189     }
190
191     public String getVendorName() {
192         return vendorName;
193     }
194
195     public void setVendorName(String value) {
196         this.vendorName = value;
197     }
198
199     public String getModelName() {
200         return modelName;
201     }
202
203     public void setModelName(String value) {
204         this.modelName = value;
205     }
206
207     public String getModelNumber() {
208         return modelNumber;
209     }
210
211     public void setModelNumber(String value) {
212         this.modelNumber = value;
213     }
214
215     public String getModelRegion() {
216         return modelRegion;
217     }
218
219     public void setModelRegion(String value) {
220         this.modelRegion = value;
221     }
222
223     public boolean isTv() {
224         return isTv;
225     }
226
227     public void setIsTv(boolean value) {
228         this.isTv = value;
229     }
230
231     public boolean isStick() {
232         return isStick;
233     }
234
235     public void setIsStick(boolean value) {
236         this.isStick = value;
237     }
238
239     public String getUiResolution() {
240         return uiResolution;
241     }
242
243     public void setUiResolution(String value) {
244         this.uiResolution = value;
245     }
246
247     public boolean isSupportsEthernet() {
248         return supportsEthernet;
249     }
250
251     public void setSupportsEthernet(boolean value) {
252         this.supportsEthernet = value;
253     }
254
255     public String getWifiMac() {
256         return wifiMac;
257     }
258
259     public void setWifiMac(String value) {
260         this.wifiMac = value;
261     }
262
263     public String getWifiDriver() {
264         return wifiDriver;
265     }
266
267     public void setWifiDriver(String value) {
268         this.wifiDriver = value;
269     }
270
271     public boolean isHasWifiExtender() {
272         return hasWifiExtender;
273     }
274
275     public void setHasWifiExtender(boolean value) {
276         this.hasWifiExtender = value;
277     }
278
279     public boolean isHasWifi5GSupport() {
280         return hasWifi5GSupport;
281     }
282
283     public void setHasWifi5GSupport(boolean value) {
284         this.hasWifi5GSupport = value;
285     }
286
287     public boolean isCanUseWifiExtender() {
288         return canUseWifiExtender;
289     }
290
291     public void setCanUseWifiExtender(boolean value) {
292         this.canUseWifiExtender = value;
293     }
294
295     public String getEthernetMac() {
296         return ethernetMac;
297     }
298
299     public void setEthernetMac(String value) {
300         this.ethernetMac = value;
301     }
302
303     public String getNetworkType() {
304         return networkType;
305     }
306
307     public void setNetworkType(String value) {
308         this.networkType = value;
309     }
310
311     public String getFriendlyDeviceName() {
312         return friendlyDeviceName;
313     }
314
315     public void setFriendlyDeviceName(String value) {
316         this.friendlyDeviceName = value;
317     }
318
319     public String getFriendlyModelName() {
320         return friendlyModelName;
321     }
322
323     public void setFriendlyModelName(String value) {
324         this.friendlyModelName = value;
325     }
326
327     public String getDefaultDeviceName() {
328         return defaultDeviceName;
329     }
330
331     public void setDefaultDeviceName(String value) {
332         this.defaultDeviceName = value;
333     }
334
335     public String getUserDeviceName() {
336         return userDeviceName;
337     }
338
339     public void setUserDeviceName(String value) {
340         this.userDeviceName = value;
341     }
342
343     public String getUserDeviceLocation() {
344         return userDeviceLocation;
345     }
346
347     public void setUserDeviceLocation(String value) {
348         this.userDeviceLocation = value;
349     }
350
351     public String getBuildNumber() {
352         return buildNumber;
353     }
354
355     public void setBuildNumber(String value) {
356         this.buildNumber = value;
357     }
358
359     public String getSoftwareVersion() {
360         return softwareVersion;
361     }
362
363     public void setSoftwareVersion(String value) {
364         this.softwareVersion = value;
365     }
366
367     public String getSoftwareBuild() {
368         return softwareBuild;
369     }
370
371     public void setSoftwareBuild(String value) {
372         this.softwareBuild = value;
373     }
374
375     public boolean isSecureDevice() {
376         return secureDevice;
377     }
378
379     public void setSecureDevice(boolean value) {
380         this.secureDevice = value;
381     }
382
383     public String getLanguage() {
384         return language;
385     }
386
387     public void setLanguage(String value) {
388         this.language = value;
389     }
390
391     public String getCountry() {
392         return country;
393     }
394
395     public void setCountry(String value) {
396         this.country = value;
397     }
398
399     public String getLocale() {
400         return locale;
401     }
402
403     public void setLocale(String value) {
404         this.locale = value;
405     }
406
407     public boolean isTimeZoneAuto() {
408         return timeZoneAuto;
409     }
410
411     public void setTimeZoneAuto(boolean value) {
412         this.timeZoneAuto = value;
413     }
414
415     public String getTimeZone() {
416         return timeZone;
417     }
418
419     public void setTimeZone(String value) {
420         this.timeZone = value;
421     }
422
423     public String getTimeZoneName() {
424         return timeZoneName;
425     }
426
427     public void setTimeZoneName(String value) {
428         this.timeZoneName = value;
429     }
430
431     public String getTimeZoneTz() {
432         return timeZoneTz;
433     }
434
435     public void setTimeZoneTz(String value) {
436         this.timeZoneTz = value;
437     }
438
439     public int getTimeZoneOffset() {
440         return timeZoneOffset;
441     }
442
443     public void setTimeZoneOffset(int value) {
444         this.timeZoneOffset = value;
445     }
446
447     public String getClockFormat() {
448         return clockFormat;
449     }
450
451     public void setClockFormat(String value) {
452         this.clockFormat = value;
453     }
454
455     public int getUptime() {
456         return uptime;
457     }
458
459     public void setUptime(int value) {
460         this.uptime = value;
461     }
462
463     public String getPowerMode() {
464         return powerMode;
465     }
466
467     public void setPowerMode(String value) {
468         this.powerMode = value;
469     }
470
471     public boolean isSupportsSuspend() {
472         return supportsSuspend;
473     }
474
475     public void setSupportsSuspend(boolean value) {
476         this.supportsSuspend = value;
477     }
478
479     public boolean isSupportsFindRemote() {
480         return supportsFindRemote;
481     }
482
483     public void setSupportsFindRemote(boolean value) {
484         this.supportsFindRemote = value;
485     }
486
487     public boolean isFindRemoteIsPossible() {
488         return findRemoteIsPossible;
489     }
490
491     public void setFindRemoteIsPossible(boolean value) {
492         this.findRemoteIsPossible = value;
493     }
494
495     public boolean isSupportsAudioGuide() {
496         return supportsAudioGuide;
497     }
498
499     public void setSupportsAudioGuide(boolean value) {
500         this.supportsAudioGuide = value;
501     }
502
503     public boolean isSupportsRva() {
504         return supportsRva;
505     }
506
507     public void setSupportsRva(boolean value) {
508         this.supportsRva = value;
509     }
510
511     public boolean isDeveloperEnabled() {
512         return developerEnabled;
513     }
514
515     public void setDeveloperEnabled(boolean value) {
516         this.developerEnabled = value;
517     }
518
519     public String getKeyedDeveloperId() {
520         return keyedDeveloperId;
521     }
522
523     public void setKeyedDeveloperId(String value) {
524         this.keyedDeveloperId = value;
525     }
526
527     public boolean isSearchEnabled() {
528         return searchEnabled;
529     }
530
531     public void setSearchEnabled(boolean value) {
532         this.searchEnabled = value;
533     }
534
535     public boolean isSearchChannelsEnabled() {
536         return searchChannelsEnabled;
537     }
538
539     public void setSearchChannelsEnabled(boolean value) {
540         this.searchChannelsEnabled = value;
541     }
542
543     public boolean isVoiceSearchEnabled() {
544         return voiceSearchEnabled;
545     }
546
547     public void setVoiceSearchEnabled(boolean value) {
548         this.voiceSearchEnabled = value;
549     }
550
551     public boolean isNotificationsEnabled() {
552         return notificationsEnabled;
553     }
554
555     public void setNotificationsEnabled(boolean value) {
556         this.notificationsEnabled = value;
557     }
558
559     public boolean isNotificationsFirstUse() {
560         return notificationsFirstUse;
561     }
562
563     public void setNotificationsFirstUse(boolean value) {
564         this.notificationsFirstUse = value;
565     }
566
567     public boolean isSupportsPrivateListening() {
568         return supportsPrivateListening;
569     }
570
571     public void setSupportsPrivateListening(boolean value) {
572         this.supportsPrivateListening = value;
573     }
574
575     public boolean isHeadphonesConnected() {
576         return headphonesConnected;
577     }
578
579     public void setHeadphonesConnected(boolean value) {
580         this.headphonesConnected = value;
581     }
582
583     public boolean isSupportsEcsTextedit() {
584         return supportsEcsTextedit;
585     }
586
587     public void setSupportsEcsTextedit(boolean value) {
588         this.supportsEcsTextedit = value;
589     }
590
591     public boolean isSupportsEcsMicrophone() {
592         return supportsEcsMicrophone;
593     }
594
595     public void setSupportsEcsMicrophone(boolean value) {
596         this.supportsEcsMicrophone = value;
597     }
598
599     public boolean isSupportsWakeOnWlan() {
600         return supportsWakeOnWlan;
601     }
602
603     public void setSupportsWakeOnWlan(boolean value) {
604         this.supportsWakeOnWlan = value;
605     }
606
607     public boolean isHasPlayOnRoku() {
608         return hasPlayOnRoku;
609     }
610
611     public void setHasPlayOnRoku(boolean value) {
612         this.hasPlayOnRoku = value;
613     }
614
615     public boolean isHasMobileScreensaver() {
616         return hasMobileScreensaver;
617     }
618
619     public void setHasMobileScreensaver(boolean value) {
620         this.hasMobileScreensaver = value;
621     }
622
623     public String getSupportUrl() {
624         return supportUrl;
625     }
626
627     public void setSupportUrl(String value) {
628         this.supportUrl = value;
629     }
630
631     public String getGrandcentralVersion() {
632         return grandcentralVersion;
633     }
634
635     public void setGrandcentralVersion(String value) {
636         this.grandcentralVersion = value;
637     }
638
639     public String getTrcVersion() {
640         return trcVersion;
641     }
642
643     public void setTrcVersion(String value) {
644         this.trcVersion = value;
645     }
646
647     public String getTrcChannelVersion() {
648         return trcChannelVersion;
649     }
650
651     public void setTrcChannelVersion(String value) {
652         this.trcChannelVersion = value;
653     }
654
655     public String getDavinciVersion() {
656         return davinciVersion;
657     }
658
659     public void setDavinciVersion(String value) {
660         this.davinciVersion = value;
661     }
662 }