forked from use-go/onvif
-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
93 lines (73 loc) · 2.03 KB
/
types.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
package media2
//go:generate python3 ../python/gen_commands.py
import (
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type GetProfiles struct {
XMLName string `xml:"tr2:GetProfiles"`
}
type GetProfilesResponse struct {
Profiles []Profile
}
type Profile struct {
Token string `xml:"token,attr"`
Fixed bool `xml:"fixed,attr"`
Name string
}
type GetAnalyticsConfigurations struct {
XMLName string `xml:"tr2:GetAnalyticsConfigurations"`
}
type GetAnalyticsConfigurationsResponse struct {
Configurations []Configurations
}
type Configurations struct {
onvif.ConfigurationEntity
AnalyticsEngineConfiguration *AnalyticsEngineConfiguration `json:",omitempty"`
RuleEngineConfiguration *RuleEngineConfiguration `json:",omitempty"`
}
type AnalyticsEngineConfiguration struct {
AnalyticsModule []AnalyticsModule
}
type AnalyticsModule struct {
Name string `xml:",attr"`
Type string `xml:",attr"`
Parameters Parameters
}
type RuleEngineConfiguration struct {
Rule []Rule `json:",omitempty"`
}
type Rule struct {
Name string `xml:",attr"`
Type string `xml:",attr"`
Parameters Parameters
}
type Parameters struct {
SimpleItem []SimpleItem `json:",omitempty"`
ElementItem []ElementItem `json:",omitempty"`
}
type SimpleItem struct {
Name string `xml:",attr"`
Value string `xml:",attr"`
}
type ElementItem struct {
Name string `xml:",attr"`
}
type AddConfiguration struct {
XMLName string `xml:"tr2:AddConfiguration"`
ProfileToken string `xml:"tr2:ProfileToken"`
Name string `xml:"tr2:Name,omitempty"`
Configuration []Configuration
}
type AddConfigurationResponse struct{}
type RemoveConfiguration struct {
XMLName string `xml:"tr2:RemoveConfiguration"`
ProfileToken string `xml:"tr2:ProfileToken"`
Configuration []Configuration
}
type RemoveConfigurationResponse struct{}
type Configuration struct {
XMLName xsd.String `xml:"tr2:Configuration"`
Type *xsd.String `xml:"tr2:Type,omitempty"`
Token *xsd.String `xml:"tr2:Token,omitempty"`
}