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);
         }
     }
 }
예제 #2
0
 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;
         }
     }
 }
예제 #3
0
 public override Task RequestPreAuthorizedTemporaryExposureKeyHistoryAsync()
 => _exposureNotificationClient.RequestPreAuthorizedTemporaryExposureKeyHistoryAsync();