getRecordings method

GetRecordings shall return a description of all the recordings in the device. This description shall include a list of all the tracks for each recording.

ACCESS CLASS: ACTUATE

Implementation

Future<List<GetRecordingsResponseItem>> getRecordings() async {
  loggy.debug('getRecordings');

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

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

  return GetRecordingsResponse.fromJson(
    responseEnvelope.body.response!,
  ).recordingItems;
}