Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

Chat Template

linkContacts()

Syntax

number = rb.chat.linkContacts(target, contacts)

Parameters

The 'linkContacts' method takes 2 parameters:

Name Type/Value Range/Length Description
targetnumberinteger, valid room ID Required. The ID of the room that is to be linked/unlinked from contact IDs.
contactsarray of numbers  Required. An array of IDs of contacts (and up to 1 OU) to associate with the room.

Results

The 'linkContacts' method returns number:

Type/Value Range/Length Description
number   Each entry in the array is the ID of a contact record. If the ID is negative then unlink from the (+ve) value contact record. Errors are ignored in this call. No error is caused by linking to a contact to which a room is already linked, removing from a contact that is not currently linked to the room.

Whitebeam release 1.3.36
(loadtime : 224ms)