setReplayConfiguration method

Future<bool> setReplayConfiguration(
  1. ReplayConfiguration configuration
)

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

ACCESS CLASS: READ_MEDIA

Implementation

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

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

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

  return true;
}