Skip to content

Instantly share code, notes, and snippets.

@b-wind
Created September 14, 2020 16:57
Show Gist options
  • Save b-wind/5d37a561df7584b2e69a90cf983aa36e to your computer and use it in GitHub Desktop.
Save b-wind/5d37a561df7584b2e69a90cf983aa36e to your computer and use it in GitHub Desktop.
sequenceDiagram2
PlatformScheduleFetchExposureNotification(share)ExposureNotificationHandlerExposureNotification(ios)ENManagerUserDataModelUpdateKeysFromServerFetchExposureKeyBatchFilesFromServerAsync(submitBatches)DownloadBatchAsyncdownloadedFilesdownloadedFiles.Count > 0submitBatches: callbackPlatformDetectExposuresAsync(downloadedFiles)DetectExposuresAsyncsummaryreturn summary, infosummary?.MatchedKeyCount > 0ExposureDetectedAsync(summay, info)ExposureSummary = summaryinfo(): callbackif summary?.MatchedKeyCount > 0 thenGetExposureInfoAsync(detectionSummary...)exposuresinfo.add(new ExposureInfo())loop[ exposures ]return infoexposureInfo <- info()ExposureInformation.add( exposure )loop[ add ]Savereturn ExposureDetectedAsyncreturn submitBatchesdelete filesreturn FetchExposureKeyBatchFilesFromServerAsyncprocessedAnyFilesPlatformScheduleFetchExposureNotification(share)ExposureNotificationHandlerExposureNotification(ios)ENManagerUserDataModel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment