device_info.go 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package main
  2. type DeviceInfo struct {
  3. Udn string `xml:"udn"`
  4. SerialNumber string `xml:"serial-number"`
  5. DeviceId string `xml:"device-id"`
  6. AdvertisingId string `xml:"advertising-id"`
  7. VendorName string `xml:"vendor-name"`
  8. ModelName string `xml:"model-name"`
  9. ModelNumber string `xml:"model-number"`
  10. ModelRegion string `xml:"model-region"`
  11. IsTv bool `xml:"is-tv"`
  12. IsStick bool `xml:"is-stick"`
  13. ScreenSize int `xml:"screen-size"`
  14. PanelId int `xml:"panel-id"`
  15. UiResolution string `xml:"ui-resolution"`
  16. TunerType string `xml:"tuner-type"`
  17. SupportsEthernet bool `xml:"supports-ethernet"`
  18. WifiMac string `xml:"wifi-mac"`
  19. WifiDriver string `xml:"wifi-driver"`
  20. HasWifiExtender bool `xml:"has-wifi-extender"`
  21. HasWifi5GSupport bool `xml:"has-wifi-5G-support"`
  22. CanUseWifiExtender bool `xml:"can-use-wifi-extender"`
  23. EthernetMac string `xml:"ethernet-mac"`
  24. NetworkType string `xml:"network-type"`
  25. FriendlyDeviceName string `xml:"friendly-device-name"` // Contains html
  26. FriendlyModelName string `xml:"friendly-model-name"` // Contains unicode
  27. DefaultDeviceName string `xml:"default-device-name"` // Contains unicode
  28. UserDeviceName string `xml:"user-device-name"` // Contains html
  29. UserDeviceLocation string `xml:"user-device-location"`
  30. BuildNumber string `xml:"build-number"`
  31. SoftwareVersion string `xml:"software-version"`
  32. SoftwareBuild string `xml:"software-build"`
  33. SecureDevice bool `xml:"secure-device"`
  34. Language string `xml:"language"`
  35. Country string `xml:"country"`
  36. Locale string `xml:"locale"`
  37. TimeZoneAuto bool `xml:"time-zone-auto"`
  38. TimeZone string `xml:"time-zone"`
  39. TimeZoneName string `xml:"time-zone-name"`
  40. TimeZoneTz string `xml:"time-zone-tz"`
  41. TimeZoneOffset int `xml:"time-zone-offset"`
  42. ClockFormat string `xml:"clock-format"`
  43. Uptime int `xml:"uptime"`
  44. PowerMode string `xml:"power-mode"`
  45. SupportsSuspend bool `xml:"supports-suspend"`
  46. SupportsFindRemote bool `xml:"supports-find-remote"`
  47. SupportsAudioGuide bool `xml:"supports-audio-guide"`
  48. SupportsRva bool `xml:"supports-rva"`
  49. DeveloperEnabled bool `xml:"developer-enabled"`
  50. KeyedDeveloperId string `xml:"keyed-developer-id"` // This was just a xml close with no information
  51. SearchEnabled bool `xml:"search-enabled"`
  52. SearchChannelsEnabled bool `xml:"search-channels-enabled"`
  53. VoiceSearchEnabled bool `xml:"voice-search-enabled"`
  54. NotificationsEnabled bool `xml:"notifications-enabled"`
  55. NotificationsFirstUse bool `xml:"notifications-first-use"`
  56. SupportsPrivateListening bool `xml:"supports-private-listening"`
  57. SupportsPrivateListeningDtv bool `xml:"supports-private-listening-dtv"`
  58. SupportsWarmStandby bool `xml:"supports-warm-standby"`
  59. HeadphonesConnected bool `xml:"headphones-connected"`
  60. SupportsAudioSettings bool `xml:"supports-audio-settings"`
  61. ExpertPqEnabled float32 `xml:"expert-pq-enabled"`
  62. SupportsEcsTextedit bool `xml:"supports-ecs-textedit"`
  63. SupportsEcsMicrophone bool `xml:"supports-ecs-microphone"`
  64. SupportsWakeOnWLan bool `xml:"supports-wake-on-wlan"` // Needed for sending etherwake Wake On Lan (WOL)
  65. SupportsAirplay bool `xml:"supports-airplay"`
  66. HasPlayOnRoku bool `xml:"has-play-on-roku"`
  67. SupportUrl string `xml:"support-url"` // web-link
  68. GrandcentralVersion string `xml:"grandcentral-version"`
  69. TrcVersion string `xml:"trc-version"`
  70. TrcChannelVersion string `xml:"trc-channel-version"`
  71. DavinciVersion string `xml:"davinci-version"`
  72. AvSyncCalibrationEnabled float32 `xml:"av-sync-calibration-enabled"`
  73. }