mirror of
https://github.com/cedricve/go-onvif.git
synced 2025-10-04 16:22:40 +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"`,
|
||||
}
|
||||
|
||||
// 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
|
||||
func (device Device) GetSystemDateAndTime() (string, error) {
|
||||
// Create SOAP
|
||||
|
Reference in New Issue
Block a user