CustomerCreateResponse
NSString * status;
NSString * generated;
NSString * id;
NSString * organizationId;
NSString * locationId;
NSString * hotspotId;
NSString * username;
NSString * password;
NSNumber * mailSent;
Example
cloud4WiSDKWiFi.createCustomer(customer, deduplicate: nil) { (customerResponse) in
if let customerResponse = customerResponse {
print(customerResponse.status)
print(customerResponse.generated)
print(customerResponse.id)
print(customerResponse.organizationId)
print(customerResponse.locationId)
print(customerResponse.username)
print(customerResponse.password)
print(customerResponse.mailSent)
}
}
[cloud4WiSDKWiFi createCustomer:customer deduplicate:nil onSuccess:^(CustomerCreateResponse *customerCreateResp) {
NSLog(@"%@", customerCreateResp.status);
NSLog(@"%@", customerCreateResp.generated);
NSLog(@"%@", customerCreateResp.id);
NSLog(@"%@", customerCreateResp.organizationId);
NSLog(@"%@", customerCreateResp.locationId);
NSLog(@"%@", customerCreateResp.username);
NSLog(@"%@", customerCreateResp.password);
NSLog(@"%@", customerCreateResp.mailSent);
} onError:^(NSError *error) {
NSLog(@"ERROR. Cannot create customer: %@", [error localizedDescription]);
}];
output
Optional("OK") <- status
Optional("2022-07-08T13:15:43.885Z") <- generated
Optional("986a372347aac5e4a94516db835d58aa") <- id
Optional("3a8ccd060216452e09b2b32e750cb5eb") <- organizationId
Optional("ff80808170f5232b01754653699e109e") <- locationId
Optional("YDSDFDKJEAS") <- username
Optional("XXXXX") <- password
nil <- mailSent
Last updated