setCurrentPreset static method
XmlDocumentFragment
setCurrentPreset({})
XML for the setCurrentPreset, requires a videoSourceToken
Implementation
static XmlDocumentFragment setCurrentPreset({
required String videoSourceToken,
required String presetToken,
}) {
Transport.builder.element('SetPreset', nest: () {
Transport.builder.namespace(Xmlns.timg);
ReferenceToken(videoSourceToken).buildXml(
builder,
tag: 'VideoSourceToken',
);
ReferenceToken(videoSourceToken).buildXml(
builder,
tag: 'PresetToken',
);
});
return Transport.builder.buildFragment();
}