COVIDSafe code from version 1.6 (#6)

This commit is contained in:
COVIDSafe Support 2020-06-19 17:43:33 +10:00 committed by GitHub
parent 149daee2e9
commit 2063cea613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 1963 additions and 1664 deletions

View file

@ -16,7 +16,9 @@ class PhoneValidationAPI {
guard let apiHost = PlistHelper.getvalueFromInfoPlist(withKey: "API_Host", plistName: "CovidSafe-config") else {
return
}
let params = [
"country_code": "+\(regInfo.countryPhoneCode ?? "61")",
"phone_number": regInfo.phoneNumber,
"age": String(regInfo.age),
"postcode": regInfo.postcode,
@ -45,6 +47,7 @@ struct RegistrationRequest {
var age: Int
var isMinor: Bool
var phoneNumber: String
var countryPhoneCode: String?
}
struct AuthResponse: Decodable {