goonvif/search/search.go

82 lines
2.4 KiB
Go
Raw Permalink Normal View History

2024-10-30 18:51:51 +08:00
package search
import (
2024-10-31 18:22:47 +08:00
xsd "git.pyer.club/kingecg/goonvif/onvif/xsd"
onvifmodel "git.pyer.club/kingecg/goonvif/onvif/xsd/onvif"
2024-10-30 18:51:51 +08:00
)
type SourceReference onvifmodel.ReferenceToken
type RecordingReference onvifmodel.ReferenceToken
type SearchScope struct {
IncludedSources []SourceReference `xml:"onvif:IncludedSources"`
IncludedRecordings []RecordingReference `xml:"onvif:IncludedRecordings"`
RecordingInformationFilter xsd.String `xml:"onvif:RecordingInformationFilter"`
Extension SearchScopeExtension `xml:"onvif:Extension"`
}
type SearchScopeExtension []xsd.AnyType
2024-10-31 18:22:47 +08:00
type FindRecordings struct {
XMLName string `xml:"tse:FindRecordings"`
2024-10-30 18:51:51 +08:00
Scope SearchScope `xml:"tse:Scope"`
MaxMatches xsd.Int `xml:"tse:MaxMatches"`
KeepAliveTimeout xsd.Duration `xml:"tse:KeepAliveTimeout"`
}
2024-10-31 18:22:47 +08:00
type FindRecordingsResponse struct {
SearchToken onvifmodel.ReferenceToken
}
2024-10-30 18:51:51 +08:00
type GetRecordingSummary struct {
XMLName string `xml:"tse:GetRecordingSummary"`
}
type RecordingSummary struct {
DataFrom xsd.DateTime
DataUntil xsd.DateTime
NumberRecordings xsd.Int
}
type GetRecordingSummaryResponse struct {
Summary RecordingSummary
}
2024-10-31 18:22:47 +08:00
type GetRecordingSearchResults struct {
XMLName string `xml:"tse:GetRecordingSearchResults"`
SearchToken onvifmodel.ReferenceToken `xml:"tse:SearchToken"`
MinResults xsd.Int `xml:"tse:MinResults"`
MaxResults xsd.Int `xml:"tse:MaxResults"`
WaitTime xsd.Duration `xml:"tse:WaitTime"`
}
type RecordingSourceInformation struct {
SourceId xsd.AnyURI
Name xsd.String
Location xsd.String
Description xsd.String
Address xsd.AnyURI
}
type TrackInformation struct {
TrackToken onvifmodel.ReferenceToken
TrackType xsd.String
Description xsd.String
DataFrom xsd.DateTime
DataTo xsd.DateTime
}
type RecordingInformation struct {
RecordingToken onvifmodel.ReferenceToken
Source RecordingSourceInformation
EarliestRecording xsd.DateTime
LatestRecording xsd.DateTime
Content xsd.String
Track []TrackInformation
RecordingStatus xsd.String
}
type FindRecordingResultList struct {
SearchState xsd.String
RecordingInformation []RecordingInformation
}
type GetRecordingSearchResultsResponse struct {
ResultList FindRecordingResultList
}