HTTPClient
final class HTTPClient : Client
Undocumented
-
Undocumented
Declaration
Swift
init( configuration: Configuration, packageVerifier: @escaping SAPDownloadedPackage.Verification = SAPDownloadedPackage.Verifier().verify, session: URLSession = .coronaWarnSession() )
-
Undocumented
Declaration
Swift
let configuration: Configuration
-
Undocumented
Declaration
Swift
let session: URLSession
-
Undocumented
Declaration
Swift
let packageVerifier: SAPDownloadedPackage.Verification
-
Declaration
Swift
func submit(payload: CountrySubmissionPayload, isFake: Bool, completion: @escaping KeySubmissionResponse)
-
Declaration
Swift
func availableDays( forCountry country: String, completion completeWith: @escaping AvailableDaysCompletionHandler )
-
Declaration
Swift
func availableHours( day: String, country: String, completion completeWith: @escaping AvailableHoursCompletionHandler )
-
Declaration
Swift
func fetchDay( _ day: String, forCountry country: String, completion completeWith: @escaping DayCompletionHandler )
-
Declaration
Swift
func fetchHour( _ hour: Int, day: String, country: String, completion completeWith: @escaping HourCompletionHandler )
-
Undocumented
Declaration
Swift
func getTestResult(forDevice registrationToken: String, isFake: Bool = false, completion completeWith: @escaping TestResultHandler)
-
Undocumented
Declaration
Swift
func getTANForExposureSubmit(forDevice registrationToken: String, isFake: Bool = false, completion completeWith: @escaping TANHandler)
-
Declaration
Swift
func getRegistrationToken(forKey key: String, withType type: String, isFake: Bool = false, completion completeWith: @escaping RegistrationHandler)