Contacts

Class finesse.restservices.Contacts

Extends finesse.restservices.RestCollectionBase

Represents the Contacts collection object and also exposes methods to operate on the object against the server.

Example

Code Snippet
Copy _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 RestCollectionBase Common Parameters.