getRecordingSummary method

Future<RecordingSummary> getRecordingSummary()

GetRecordingSummary is used to get a summary description of all recorded data. This operation is mandatory to support for a device implementing the recording search service.

ACCESS CLASS: READ_MEDIA

Implementation

Future<RecordingSummary> getRecordingSummary() async {
  loggy.debug('getRecordingSummary');

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

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

  return GetRecordingSummaryResponse.fromJson(responseEnvelope.body.response!)
      .summary;
}