setRecordingJobMode method

Future<bool> setRecordingJobMode({
  1. required String jobToken,
  2. required RecordingJobConfigurationMode mode,
})

SetRecordingJobMode shall change the mode of the recording job. Using this method shall be equivalent to retrieving the recording job configuration, and writing it back with a different mode.

ACCESS CLASS: ACTUATE

Implementation

Future<bool> setRecordingJobMode({
  required String jobToken,
  required RecordingJobConfigurationMode mode,
}) async {
  loggy.debug('setRecordingJobMode');

  final responseEnvelope = await transport.request(
    uri,
    soap.Body(
      request: RecordingsRequest.setRecordingJobMode(
        jobToken: jobToken,
        mode: mode,
      ),
    ),
  );

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return true;
}