1 Star 0 Fork 0

南京未来物联科技有限公司 / fn-onvif

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AbsoluteMove_auto.go 942 Bytes
一键复制 编辑 原始数据 按行查看 历史
lan_xin2578 提交于 2023-07-12 19:49 . [fix]优化
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package ptz
import (
"context"
"gitee.com/fnaiot/fn-onvif"
"gitee.com/fnaiot/fn-onvif/ptz"
"gitee.com/fnaiot/fn-onvif/sdk"
"github.com/juju/errors"
)
// Call_AbsoluteMove forwards the call to dev.CallMethod() then parses the payload of the reply as a AbsoluteMoveResponse.
func Call_AbsoluteMove(ctx context.Context, dev *onvif.Device, request ptz.AbsoluteMove) (ptz.AbsoluteMoveResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
AbsoluteMoveResponse ptz.AbsoluteMoveResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.AbsoluteMoveResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "AbsoluteMove")
return reply.Body.AbsoluteMoveResponse, errors.Annotate(err, "reply")
}
}
Go
1
https://gitee.com/fnaiot/fn-onvif.git
git@gitee.com:fnaiot/fn-onvif.git
fnaiot
fn-onvif
fn-onvif
v1.0.0

搜索帮助