IM Gateway CFC incoming message methods
1011
onBuddyStatus
Description
Handles incoming messages indicating online status (presence) changes of users on the gateway’s
buddy list.
Syntax
onBuddyStatus(CFEvent)
See also
onIncomingMessage
,
onAddBuddyRequest
,
onAddBuddyResponse
,
onIMServerMessage
Parameters
The method must take one parameter, a CFEvent structure with the following fields:
Note:
You configure the buddy’s nickname and group when you use the gatewayHelper object
addBuddy
method to add a buddy.
Returns
The function does not return a value.
Field
Description
gatewayType
Gateway type, either XMPP or SAMETIME.
gatewayID
The ID of the Gateway instance, as configured in ColdFusion MX
Administrator.
originatorID
The IM ID (buddy name) of the message originator.
cfcMethod
This CFC method; by default, onIMServerMessage.
data.BUDDYNAME
The sender’s buddy name, or ID; identical to the originatorID.
data.BUDDYNICK
NAME
The buddy’s display name or nickname.
data.BUDDYSTATUS The buddy’s status; one of the following:
•
ONLINE
•
OFFLINE
•
AWAY
•
DO NOT DISTURB
XMPP only
•
NOT AVAILABLE
•
FREE TO CHAT
Sametime only
•
IDLE
Use the IMGatewayHelper getCustomAwayMessage method to get any
custom message that the buddy sent when changing status.
data.BUDDYGROUP
The group that the buddy belongs to.
data.RECIPIENT
The recipient’s ID, as specified in the gateway’s configuration file.
data.TIMESTAMP
The date and time when the message was sent.
Summary of Contents for COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...