setRecordingJobMode static method

XmlDocumentFragment setRecordingJobMode({
  1. required String jobToken,
  2. required RecordingJobConfigurationMode mode,
})

XML for the setRecordingJobMode

Implementation

static XmlDocumentFragment setRecordingJobMode({
  required String jobToken,
  required RecordingJobConfigurationMode mode,
}) {
  Transport.builder.element('SetRecordingJobMode', nest: () {
    Transport.builder.namespace(Xmlns.trc);

    Transport.builder.element('JobToken', nest: () {
      Transport.builder.namespace(Xmlns.tt);

      Transport.builder.text(jobToken);
    });

    Transport.builder.element('Mode', nest: () {
      Transport.builder.namespace(Xmlns.tt);

      Transport.builder.text(mode.value);
    });
  });

  return Transport.builder.buildFragment();
}