setCurrentPreset static method

XmlDocumentFragment setCurrentPreset({
  1. required String videoSourceToken,
  2. required String presetToken,
})

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();
}