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>()); }
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; } } }
public override Task <List <ITemporaryExposureKey> > GetTemporaryExposureKeyHistoryAsync() => _exposureNotificationClient.GetTemporaryExposureKeyHistoryAsync();