getReplayConfiguration method

Future<ReplayConfiguration> getReplayConfiguration()

Returns the current configuration of the replay service. This operation is mandatory.

ACCESS CLASS: READ_MEDIA

Implementation

Future<ReplayConfiguration> getReplayConfiguration() async {
  loggy.debug('getReplayConfiguration');

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

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

  return GetReplayConfigurationResponse.fromJson(
          responseEnvelope.body.response!)
      .configuration;
}