public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync()
 {
     try
     {
         await Client.RequestPreAuthorizedTemporaryExposureKeyReleaseAsync();
     }
     catch (ApiException apiException)
     {
         if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired)
         {
             apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_PREAUTHORIZE_KEYS);
         }
     }
 }
Пример #2
0
 public override async Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync()
 {
     try
     {
         await Client.RequestPreAuthorizedTemporaryExposureKeyReleaseAsync();
     }
     catch (ApiException apiException)
     {
         if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired)
         {
             apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_PREAUTHORIZE_KEYS);
             throw new ENException(ENException.Code_Android.FAILED_UNAUTHORIZED,
                                   "RequestPreAuthorizedTemporaryExposureKeyReleaseAsync StartResolutionForResult");
         }
         else
         {
             throw apiException;
         }
     }
 }
Пример #3
0
 public override Task RequestPreAuthorizedTemporaryExposureKeyReleaseAsync()
 => _exposureNotificationClient.RequestPreAuthorizedTemporaryExposureKeyReleaseAsync();