createRecordingJob method

Future<CreateRecordingJobResponse> createRecordingJob(
  1. RecordingJobConfiguration recordingJobConfiguration
)

CreateRecordingJob shall create a new recording job.

The JobConfiguration returned from CreateRecordingJob shall be identical to the JobConfiguration passed into CreateRecordingJob, except for the ReceiverToken and the AutoCreateReceiver. In the returned structure, the ReceiverToken shall be present and valid and the AutoCreateReceiver field shall be omitted.

ACCESS CLASS: ACTUATE

Implementation

Future<CreateRecordingJobResponse> createRecordingJob(
    RecordingJobConfiguration recordingJobConfiguration) async {
  loggy.debug('createRecording');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request:
            RecordingsRequest.createRecordingJob(recordingJobConfiguration),
      ));

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

  return CreateRecordingJobResponse.fromJson(responseEnvelope.body.response!);
}