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

    Transport.builder.element('ProfileToken', nest: () {
      Transport.builder.namespace(Xmlns.timg);
      Transport.builder.text(videoSourceToken);
    });

    Transport.builder.element('PresetToken', nest: () {
      Transport.builder.namespace(Xmlns.timg);
      Transport.builder.text(presetToken);
    });
  });

  return Transport.builder.buildFragment();
}