refactor: 重命名 connection -> session

This commit is contained in:
2024-08-26 14:41:57 +08:00
parent a6cc98a32b
commit 82d3f99404
7 changed files with 31 additions and 33 deletions

View File

@ -2,7 +2,7 @@ package onvif
import "github.com/IOTechSystems/onvif/device"
func (c *Connection) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
func (c *Session) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
resp, err := c.Device.CallMethod(device.GetDeviceInformation{})
if err != nil {
return nil, err