-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.go
36 lines (33 loc) · 875 Bytes
/
device.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
package kizcool
// DeviceURL is the full device URL including prefix
// e.g. io://1111-0000-4444/12345678
type DeviceURL string
// Device representation of a single device
type Device struct {
CreationTime int
LastUpdateTime int
Label string
DeviceURL DeviceURL
Shortcut bool
ControllableName string
Definition DeviceDefinition
States []DeviceState
Available bool
Enabled bool
PlaceOID string
Widget string
Type int
OID string
UIClass string
//Attributes []interface{}
}
// DeviceDefinition describes the fields of a Device
type DeviceDefinition struct {
Commands []CommandDefinition
States []StateDefinition
WidgetName string
UIClass string
QualifiedName string
Type string
//DataProperties []
}