1 Star 0 Fork 0

南京未来物联科技有限公司/fn-onvif

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
types.go 2.02 KB
Copy Edit Raw Blame History
lan_xin2578 authored 2023-07-12 19:49 +08:00 . [fix]优化
package media2
//go:generate python3 ../python/gen_commands.py
import (
"gitee.com/fnaiot/fn-onvif/xsd"
"gitee.com/fnaiot/fn-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"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fnaiot/fn-onvif.git
git@gitee.com:fnaiot/fn-onvif.git
fnaiot
fn-onvif
fn-onvif
v1.0.0

Search