1 Star 0 Fork 0

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

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
GetProfile_auto.go 932 Bytes
Copy Edit Raw Blame History
lan_xin2578 authored 2023-07-12 19:49 . [fix]优化
// Code generated : DO NOT EDIT.
// Copyright (c) 2022 Jean-Francois SMIGIELSKI
// Distributed under the MIT License
package media
import (
"context"
"gitee.com/fnaiot/fn-onvif"
"gitee.com/fnaiot/fn-onvif/media"
"gitee.com/fnaiot/fn-onvif/sdk"
"github.com/juju/errors"
)
// Call_GetProfile forwards the call to dev.CallMethod() then parses the payload of the reply as a GetProfileResponse.
func Call_GetProfile(ctx context.Context, dev *onvif.Device, request media.GetProfile) (media.GetProfileResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetProfileResponse media.GetProfileResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetProfileResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetProfile")
return reply.Body.GetProfileResponse, 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

Search