Contact
Class finesse.restservices.Contact
Extends finesse.restservices.RestBase Common ParametersRepresents the collection of Contact objects. A Contact is a single entry in a phone book, consisting of a first name, last name, phone number, and description.
Example
_contacts = _phonebook.getContacts({
onCollectionAdd: _handleContactAdd,
onCollectionDelete: _handleContactDelete,
onLoad: _handleContactsLoaded
});
_contactCollection = _contacts.getCollection();
for (var contactId in _contactCollection) {
if (_contactCollection.hasOwnProperty(contactId)) {
_contact = _contactCollection[contactId];
etc...
}
}For additional parameters and methods, see RestBase Common Parameters.
Methods
getDescription()
Retrieves the description for a contact.
Returns
{String} The description for a contact.
getFirstName()
Retrieves the first name of a contact.
Returns
{String} The first name of a contact.
getLastName()
Retrieves the last name of a contact.
Returns
{String} The last name of a contact.
getPhoneNumber()
Retrieves the phone number.
Returns
{String} The phone number.