- @returns Iterable of (contact id, contact name)
- """
- self._update_contacts_cache()
- contactsToSort = [
- (contactDetails["name"], contactId)
- for contactId, contactDetails in self._contacts.iteritems()
- ]
- contactsToSort.sort()
- return (
- (contactId, contactName)
- for (contactName, contactId) in contactsToSort
- )
-
- def get_contact_details(self, contactId):
- """
- @returns Iterable of (Phone Type, Phone Number)