public override async Task <List <ITemporaryExposureKey> > GetTemporaryExposureKeyHistoryAsync()
        {
            try
            {
                return(await Client.GetTemporaryExposureKeyHistoryAsync());
            }
            catch (ApiException apiException)
            {
                if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired)
                {
                    apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_GET_TEK_HISTORY);
                }
                else
                {
                    throw apiException;
                }
            }

            return(new List <ITemporaryExposureKey>());
        }
Exemple #2
0
 public override async Task <List <TemporaryExposureKey> > GetTemporaryExposureKeyHistoryAsync()
 {
     try
     {
         return(await Client.GetTemporaryExposureKeyHistoryAsync());
     }
     catch (ApiException apiException)
     {
         if (apiException.StatusCode == CommonStatusCodes.ResolutionRequired)
         {
             apiException.Status.StartResolutionForResult(Platform.CurrentActivity, REQUEST_GET_TEK_HISTORY);
             throw new ENException(ENException.Code_Android.FAILED_UNAUTHORIZED,
                                   "GetTemporaryExposureKeyHistoryAsync StartResolutionForResult");
         }
         else
         {
             throw apiException;
         }
     }
 }
Exemple #3
0
 public override Task <List <ITemporaryExposureKey> > GetTemporaryExposureKeyHistoryAsync()
 => _exposureNotificationClient.GetTemporaryExposureKeyHistoryAsync();