1 Star 0 Fork 0

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

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
types.go 6.09 KB
一键复制 编辑 原始数据 按行查看 历史
lan_xin2578 提交于 2023-07-12 19:49 . [fix]优化
package analytics
import (
"gitee.com/fnaiot/fn-onvif/xsd"
"gitee.com/fnaiot/fn-onvif/xsd/onvif"
)
type GetSupportedRules struct {
XMLName string `xml:"tan:GetSupportedRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type CreateRules struct {
XMLName string `xml:"tan:CreateRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
Rule onvif.Config `xml:"tan:Rule"`
}
type DeleteRules struct {
XMLName string `xml:"tan:DeleteRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
RuleName xsd.String `xml:"tan:RuleName"`
}
type GetRules struct {
XMLName string `xml:"tan:GetRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type GetRuleOptions struct {
XMLName string `xml:"tan:GetRuleOptions"`
RuleType xsd.QName `xml:"tan:RuleType"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type ModifyRules struct {
XMLName string `xml:"tan:ModifyRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
Rule onvif.Config `xml:"tan:Rule"`
}
type GetServiceCapabilities struct {
XMLName string `xml:"tan:GetServiceCapabilities"`
}
type GetSupportedAnalyticsModules struct {
XMLName string `xml:"tan:GetSupportedAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type GetAnalyticsModuleOptions struct {
XMLName string `xml:"tan:GetAnalyticsModuleOptions"`
Type xsd.QName `xml:"tan:Type"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type CreateAnalyticsModules struct {
XMLName string `xml:"tev:CreateAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModule onvif.Config `xml:"tan:AnalyticsModule"`
}
type DeleteAnalyticsModules struct {
XMLName string `xml:"tan:DeleteAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModuleName xsd.String `xml:"tan:AnalyticsModuleName"`
}
type GetAnalyticsModules struct {
XMLName string `xml:"tan:GetAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type ModifyAnalyticsModules struct {
XMLName string `xml:"tan:ModifyAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModule onvif.Config `xml:"tan:AnalyticsModule"`
}
type CreateAnalyticsModulesResponse struct{}
type CreateRulesResponse struct{}
type GetAnalyticsModuleOptionsResponse struct {
Options []AnalyticsModuleOptions
}
type AnalyticsModuleOptions struct {
RuleType string `json:",omitempty" xml:",attr"`
Name string `json:",omitempty" xml:",attr"`
Type string `json:",omitempty" xml:",attr"`
AnalyticsModule string `json:",omitempty" xml:",attr"`
IntRange *IntRange `json:",omitempty"`
StringItems *StringItems `json:",omitempty"`
}
type IntRange struct {
Min int
Max int
}
type StringItems struct {
Item []string
}
type GetAnalyticsModulesResponse struct {
AnalyticsModule []onvif.Config
}
type GetRuleOptionsResponse struct {
RuleOptions []RuleOptions
}
type RuleOptions struct {
RuleType *xsd.String `json:",omitempty"`
Name *xsd.String `json:",omitempty" xml:",attr"`
Type *xsd.String `json:",omitempty" xml:",attr"`
MinOccurs *xsd.String `json:",omitempty" xml:"minOccurs,attr"`
MaxOccurs *xsd.String `json:",omitempty" xml:"maxOccurs,attr"`
AnalyticsModule *xsd.String `json:",omitempty"`
IntRange *IntRange `json:",omitempty"`
StringItems *StringItems `json:",omitempty"`
PolygonOptions *PolygonOptions `json:",omitempty"`
MotionRegionConfigOptions *MotionRegionConfigOptions `json:",omitempty"`
StringList *xsd.String `json:",omitempty"`
}
type PolygonOptions struct {
VertexLimits VertexLimits
}
type VertexLimits struct {
Min int
Max int
}
type MotionRegionConfigOptions struct {
DisarmSupport bool
PolygonSupport bool
PolygonLimits VertexLimits
}
type GetRulesResponse struct {
Rule []onvif.Config
}
type GetSupportedAnalyticsModulesResponse struct {
SupportedAnalyticsModules SupportedAnalyticsModules
}
type SupportedAnalyticsModules struct {
Limit *xsd.Int `json:",omitempty"`
AnalyticsModuleContentSchemaLocation *xsd.String `json:",omitempty"`
AnalyticsModuleDescription []AnalyticsModuleDescription `json:",omitempty"`
}
type AnalyticsModuleDescription struct {
Name string `xml:"Name,attr"`
Fixed bool `xml:"fixed,attr"`
MaxInstances int `xml:"maxInstances,attr"`
Parameters *Parameters `json:",omitempty"`
Messages *Messages `json:",omitempty"`
}
type DeleteAnalyticsModulesResponse struct{}
type DeleteRulesResponse struct{}
type GetSupportedRulesResponse struct {
SupportedRules SupportedRules
}
type SupportedRules struct {
Limit *xsd.Int `json:",omitempty"`
RuleContentSchemaLocation *xsd.String `json:",omitempty"`
RuleDescription []RuleDescription
}
type RuleDescription struct {
Name *xsd.String `json:",omitempty" xml:",attr"`
Fixed *xsd.Boolean `json:",omitempty" xml:"fixed,attr"`
MaxInstances *xsd.Int `json:",omitempty" xml:"maxInstances,attr"`
Parameters Parameters
Messages Messages `json:",omitempty"`
}
type ModifyAnalyticsModulesResponse struct{}
type ModifyRulesResponse struct{}
Go
1
https://gitee.com/fnaiot/fn-onvif.git
git@gitee.com:fnaiot/fn-onvif.git
fnaiot
fn-onvif
fn-onvif
v1.0.0

搜索帮助