Class finesse.restservices.Dialogs
Extends
finesse.restservices.RestCollectionBase.
JavaScript representation of a Dialogs collection object. Also exposes
methods to operate on the object against the server.
Defined in: finesse.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The requestId reaper timeout in ms
|
- Fields borrowed from class finesse.restservices.RestBase:
- restResponseStatus
Method Attributes | Method Name and Description |
---|---|
getDialogCount(excludeSilentMonitor)
Utility method to get the number of dialogs in this collection.
|
- Methods borrowed from class finesse.restservices.RestCollectionBase:
- getCollection, refresh
- Methods borrowed from class finesse.restservices.RestBase:
- addHandler, getData, getId, getProperty, hasProperty, isLoaded, removeHandler
Class Detail
finesse.restservices.Dialogs()
_dialogs = _user.getDialogs( { onCollectionAdd : _handleDialogAdd, onCollectionDelete : _handleDialogDelete, onLoad : _handleDialogsLoaded }); _dialogCollection = _dialogs.getCollection(); for (var dialogId in _dialogCollection) { if (_dialogCollection.hasOwnProperty(dialogId)) { _dialog = _dialogCollection[dialogId]; etc... } }
Field Detail
REQUESTID_REAPER_TIMEOUT
The requestId reaper timeout in ms
Method Detail
{Number}
getDialogCount(excludeSilentMonitor)
Utility method to get the number of dialogs in this collection.
'excludeSilentMonitor' flag is provided as an option to exclude calls with type
'SUPERVISOR_MONITOR' from the count.
- Parameters:
- {Boolean} excludeSilentMonitor
- If true, calls with type of 'SUPERVISOR_MONITOR' will be excluded from the count.
- Returns:
- {Number} The number of dialogs in this collection.