ExposureSubmissionService
protocol ExposureSubmissionService : AnyObject
Undocumented
-
Undocumented
Declaration
Swift
var devicePairingConsentAcceptTimestamp: Int64? { get }
-
Undocumented
Declaration
Swift
var devicePairingSuccessfulTimestamp: Int64? { get }
-
Undocumented
Declaration
Swift
func submitExposure( symptomsOnset: SymptomsOnset, visitedCountries: [Country], completionHandler: @escaping ExposureSubmissionHandler )
-
Undocumented
Declaration
Swift
func getRegistrationToken( forKey deviceRegistrationKey: DeviceRegistrationKey, completion completeWith: @escaping RegistrationHandler )
-
Undocumented
Declaration
Swift
func getTestResult(_ completeWith: @escaping TestResultHandler)
-
Fetches test results for a given device key.
Declaration
Swift
func getTestResult(forKey deviceRegistrationKey: DeviceRegistrationKey, useStoredRegistration: Bool, completion: @escaping TestResultHandler)
Parameters
deviceRegistrationKey
the device key to fetch the test results for
useStoredRegistration
flag to show if a separate registration is needed (
false
) or an existing registration token is used (true
)completion
-
Undocumented
Declaration
Swift
func hasRegistrationToken() -> Bool
-
Undocumented
Declaration
Swift
func deleteTest()
-
Undocumented
Declaration
Swift
func preconditions() -> ExposureManagerState
-
Undocumented
Declaration
Swift
func acceptPairing()
-
Undocumented
Declaration
Swift
func fakeRequest(completionHandler: ExposureSubmissionHandler?)
-
parseError(_:
Extension method) This method attempts to parse all different types of incoming errors, regardless whether internal or external, and transform them to an
ExposureSubmissionError
used for interpretation in the frontend. If the error cannot be parsed to the expected error/failure typesENError
,ExposureNotificationError
,ExposureNotificationError
,SubmissionError
, orURLSession.Response.Failure
, an unknown error is returned. Therefore, if this method returns.unknown
, examine the incomingError
closely.Declaration
Swift
func parseError(_ error: Error) -> ExposureSubmissionError