Class finesse.restservices.Contacts
Extends
finesse.restservices.RestCollectionBase.
JavaScript representation of a Contacts collection object. Also exposes
methods to operate on the object against the server.
Defined in: finesse.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
- Fields borrowed from class finesse.restservices.RestBase:
- ajaxRequestTimeout, restResponseStatus
- Methods borrowed from class finesse.restservices.RestCollectionBase:
- getCollection, refresh
- Methods borrowed from class finesse.restservices.RestBase:
- addHandler, getBaseRestUrl, getData, getId, getProperty, getRestUrlAdditionalParameters, hasProperty, isLoaded, removeHandler
Class Detail
finesse.restservices.Contacts()
_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...
}
}