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
GetAudioSourceConfigurationOptions_auto.go 1.14 KB
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_GetAudioSourceConfigurationOptions forwards the call to dev.CallMethod() then parses the payload of the reply as a GetAudioSourceConfigurationOptionsResponse.
func Call_GetAudioSourceConfigurationOptions(ctx context.Context, dev *onvif.Device, request media.GetAudioSourceConfigurationOptions) (media.GetAudioSourceConfigurationOptionsResponse, error) {
type Envelope struct {
Header struct{}
Body struct {
GetAudioSourceConfigurationOptionsResponse media.GetAudioSourceConfigurationOptionsResponse
}
}
var reply Envelope
if httpReply, err := dev.CallMethod(request); err != nil {
return reply.Body.GetAudioSourceConfigurationOptionsResponse, errors.Annotate(err, "call")
} else {
err = sdk.ReadAndParse(ctx, httpReply, &reply, "GetAudioSourceConfigurationOptions")
return reply.Body.GetAudioSourceConfigurationOptionsResponse, 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