COVIDSafe code from version 1.6

This commit is contained in:
covidsafe-support 2020-06-18 17:48:18 +10:00
parent 149daee2e9
commit 047ad3a5d5
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 {