public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync() { try { await Client.RequestPreAuthorizedTemporaryExposureKeyHistoryAsync(); } catch (ApiException apiException) { if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired) { apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_PREAUTHORIZE_KEYS); } } }
public override async Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync() { try { await Client.RequestPreAuthorizedTemporaryExposureKeyHistoryAsync(); } catch (ApiException apiException) { if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired) { apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_PREAUTHORIZE_KEYS); throw new ENException(ENException.Code_Android.FAILED_UNAUTHORIZED, "RequestPreAuthorizedTemporaryExposureKeyHistoryAsync StartResolutionForResult"); } else { throw apiException; } } }
public override Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync() => _exposureNotificationClient.RequestPreAuthorizedTemporaryExposureKeyHistoryAsync();