mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 21:15:21 +00:00
COVIDSafe code from version 1.6 (#6)
This commit is contained in:
parent
149daee2e9
commit
2063cea613
38 changed files with 1963 additions and 1664 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue