diff --git a/device.go b/device.go index 4cf1c50..7249f55 100644 --- a/device.go +++ b/device.go @@ -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 diff --git a/model.go b/model.go new file mode 100644 index 0000000..832f0e8 --- /dev/null +++ b/model.go @@ -0,0 +1,10 @@ +package onvif + +// Device contains data of ONVIF camera +type Device struct { + ID string + Name string + XAddr string + User string + Password string +}