mirror of
https://github.com/cedricve/go-onvif.git
synced 2025-10-05 08:36:53 +08:00
Separate model to other file
This commit is contained in:
@@ -5,15 +5,6 @@ var deviceXMLNs = []string{
|
|||||||
`xmlns:tt="http://www.onvif.org/ver10/schema"`,
|
`xmlns:tt="http://www.onvif.org/ver10/schema"`,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Device contains data of ONVIF camera
|
|
||||||
type Device struct {
|
|
||||||
ID string
|
|
||||||
Name string
|
|
||||||
XAddr string
|
|
||||||
User string
|
|
||||||
Password string
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetSystemDateAndTime fetch date and time from ONVIF camera
|
// GetSystemDateAndTime fetch date and time from ONVIF camera
|
||||||
func (device Device) GetSystemDateAndTime() (string, error) {
|
func (device Device) GetSystemDateAndTime() (string, error) {
|
||||||
// Create SOAP
|
// Create SOAP
|
||||||
|
Reference in New Issue
Block a user