-
Notifications
You must be signed in to change notification settings - Fork 8
/
zonegroups.go
107 lines (101 loc) · 5.26 KB
/
zonegroups.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package sonos
import "encoding/xml"
type VanishedDevice struct {
XMLName xml.Name `xml:"VanishedDevice"`
UUID string `xml:"UUID"`
Location string `xml:"Location"`
ZoneName string `xml:"ZoneName"`
Icon string `xml:"Icon"`
Configuration string `xml:"Configuration"`
SoftwareVersion string `xml:"SoftwareVersion"`
SWGen string `xml:"SWGen"`
MinCompatibleVersion string `xml:"MinCompatibleVersion"`
LegacyCompatibleVersion string `xml:"LegacyCompatibleVersion"`
BootSeq string `xml:"BootSeq"`
TVConfigurationError string `xml:"TVConfigurationError"`
HdmiCecAvailable string `xml:"HdmiCecAvailable"`
WirelessMode string `xml:"WirelessMode"`
WirelessLeafOnly string `xml:"WirelessLeafOnly"`
HasConfiguredSSID string `xml:"HasConfiguredSSID"`
ChannelFreq string `xml:"ChannelFreq"`
BehindWifiExtender string `xml:"BehindWifiExtender"`
WifiEnabled string `xml:"WifiEnabled"`
Orientation string `xml:"Orientation"`
RoomCalibrationState string `xml:"RoomCalibrationState"`
SecureRegState string `xml:"SecureRegState"`
VoiceConfigState string `xml:"VoiceConfigState"`
MicEnabled string `xml:"MicEnabled"`
AirPlayEnabled string `xml:"AirPlayEnabled"`
IdleState string `xml:"IdleState"`
MoreInfo string `xml:"MoreInfo"`
}
type Satellite struct {
XMLName xml.Name `xml:"Satellite"`
UUID string `xml:"UUID"`
Location string `xml:"Location"`
ZoneName string `xml:"ZoneName"`
Icon string `xml:"Icon"`
Configuration string `xml:"Configuration"`
SoftwareVersion string `xml:"SoftwareVersion"`
SWGen string `xml:"SWGen"`
MinCompatibleVersion string `xml:"MinCompatibleVersion"`
LegacyCompatibleVersion string `xml:"LegacyCompatibleVersion"`
BootSeq string `xml:"BootSeq"`
TVConfigurationError string `xml:"TVConfigurationError"`
HdmiCecAvailable string `xml:"HdmiCecAvailable"`
WirelessMode string `xml:"WirelessMode"`
WirelessLeafOnly string `xml:"WirelessLeafOnly"`
HasConfiguredSSID string `xml:"HasConfiguredSSID"`
ChannelFreq string `xml:"ChannelFreq"`
BehindWifiExtender string `xml:"BehindWifiExtender"`
WifiEnabled string `xml:"WifiEnabled"`
Orientation string `xml:"Orientation"`
RoomCalibrationState string `xml:"RoomCalibrationState"`
SecureRegState string `xml:"SecureRegState"`
VoiceConfigState string `xml:"VoiceConfigState"`
MicEnabled string `xml:"MicEnabled"`
AirPlayEnabled string `xml:"AirPlayEnabled"`
IdleState string `xml:"IdleState"`
MoreInfo string `xml:"MoreInfo"`
}
type ZoneGroupMember struct {
XMLName xml.Name `xml:"ZoneGroupMember"`
UUID string `xml:"UUID"`
Location string `xml:"Location"`
ZoneName string `xml:"ZoneName"`
Icon string `xml:"Icon"`
Configuration string `xml:"Configuration"`
SoftwareVersion string `xml:"SoftwareVersion"`
SWGen string `xml:"SWGen"`
MinCompatibleVersion string `xml:"MinCompatibleVersion"`
LegacyCompatibleVersion string `xml:"LegacyCompatibleVersion"`
BootSeq string `xml:"BootSeq"`
TVConfigurationError string `xml:"TVConfigurationError"`
HdmiCecAvailable string `xml:"HdmiCecAvailable"`
WirelessMode string `xml:"WirelessMode"`
WirelessLeafOnly string `xml:"WirelessLeafOnly"`
HasConfiguredSSID string `xml:"HasConfiguredSSID"`
ChannelFreq string `xml:"ChannelFreq"`
BehindWifiExtender string `xml:"BehindWifiExtender"`
WifiEnabled string `xml:"WifiEnabled"`
Orientation string `xml:"Orientation"`
RoomCalibrationState string `xml:"RoomCalibrationState"`
SecureRegState string `xml:"SecureRegState"`
VoiceConfigState string `xml:"VoiceConfigState"`
MicEnabled string `xml:"MicEnabled"`
AirPlayEnabled string `xml:"AirPlayEnabled"`
IdleState string `xml:"IdleState"`
MoreInfo string `xml:"MoreInfo"`
Satellite []Satellite `xml:"Satellite>Satellite"`
VanishedDevice []VanishedDevice `xml:"VanishedDevices>VanishedDevice"`
}
type ZoneGroup struct {
XMLName xml.Name `xml:"ZoneGroup"`
Coordinator string `xml:"Coordinator,attr"`
ID string `xml:"ID,attr"`
ZoneGroupMember []ZoneGroupMember `xml:"ZoneGroupMember"`
}
type ZoneGroupState struct {
XMLName xml.Name `xml:"ZoneGroupState"`
ZoneGroups []ZoneGroup `xml:"ZoneGroups>ZoneGroup"`
}