iOS SDK Samples - Roles Operations
//company is the object of getCompanyInfoDelegate()
$company.getRoles { ( result ) in
switch result
{
case .success(let roles, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print("Throws exception : \(error)")
}
}