currentQualityIssues method

Future<Map<VIQualityIssueType, VIQualityIssueLevel>> currentQualityIssues()

Returns current status for all quality issues.

Implementation

Future<Map<VIQualityIssueType, VIQualityIssueLevel>>
    currentQualityIssues() async {
  try {
    Map<dynamic, dynamic> issues = await _channel.invokeMethod(
      'Call.getCurrentQualityIssues',
      <String, dynamic>{
        'callId': callId,
      },
    );
    Map<VIQualityIssueType, VIQualityIssueLevel> resultIssues = {};
    issues.forEach((key, value) {
      resultIssues[VIQualityIssueType.values[key]] =
          VIQualityIssueLevel.values[value];
    });
    return resultIssues;
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}