2 Star 1 Fork 0

蔡雨生 / go-onvif

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
SetRemoteUser_auto.go 982 Bytes
Copy Edit Raw Blame History
蔡雨生 authored 2023-06-30 10:21 . init
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package device
import (
"context"
"github.com/juju/errors"
"gitee.com/cai-yusheng/go-onvif"
"gitee.com/cai-yusheng/go-onvif/sdk"
"gitee.com/cai-yusheng/go-onvif/device"
)
// Call_SetRemoteUser forwards the call to dev.CallMethod() then parses the payload of the reply as a SetRemoteUserResponse.
func Call_SetRemoteUser(ctx context.Context, dev *onvif.Device, request device.SetRemoteUser) (device.SetRemoteUserResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
SetRemoteUserResponse device.SetRemoteUserResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "SetRemoteUser")
return reply.Body.SetRemoteUserResponse, errors.Annotate(err, "reply")
}
}
Go
1
https://gitee.com/cai-yusheng/go-onvif.git
git@gitee.com:cai-yusheng/go-onvif.git
cai-yusheng
go-onvif
go-onvif
v0.0.4

Search