-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsystem.go
65 lines (59 loc) · 1.84 KB
/
system.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
package models
type DstInformation struct {
Enable bool `json:"enable"`
EndHour int `json:"endHour"`
EndMin int `json:"endMin"`
EndMon int `json:"endMon"`
EndSec int `json:"endSec"`
EndWeek int `json:"endWeek"`
EndWeekday int `json:"endWeekday"`
Offset int `json:"offset"`
StartHour int `json:"startHour"`
StartMin int `json:"startMin"`
StartMon int `json:"startMon"`
StartSec int `json:"startSec"`
StartWeek int `json:"startWeek"`
StartWeekday int `json:"startWeekday"`
}
type TimeInformation struct {
Day int `json:"day"`
Hour int `json:"hour"`
HourFmt bool `json:"hourFmt"`
Min int `json:"min"`
Mon int `json:"mon"`
Sec int `json:"sec"`
TimeFmt string `json:"timeFmt"`
TimeZone int `json:"timeZone"`
Year int `json:"year"`
}
type DeviceInformation struct {
B485 int `json:"B485"`
IoInputNumber int `json:"IOInputNum"`
IoOutputNumber int `json:"IOOutputNum"`
AudioNumber int `json:"AudioNum"`
BuildDay string `json:"buildDay"`
ConfigVersion string `json:"cfgVer"`
ChannelNumber int `json:"channelNum"`
Detail string `json:"detail"`
DiskNumber int `json:"diskNum"`
FirmwareVersion string `json:"firmVer"`
HardwareVersion string `json:"hardVer"`
Model string `json:"model"`
Name string `json:"name"`
Serial string `json:"serial"`
Type string `json:"type"`
Wifi bool `json:"wifi"`
}
type DevicePerformanceInformation struct {
CodecRate int `json:"codecRate"`
CpuUsed int `json:"cpuUsed"`
NetThroughput int `json:"netThroughput"`
}
type DeviceNorm struct {
Norm string `json:"norm"`
}
type DeviceGeneralInformation struct {
Time *TimeInformation
Dst *DstInformation
Norm *DeviceNorm
}