new custom()
custom message
Returns:
message:object
Methods
set(options)
Building custom message
Example
let message = New Message('custom', id); message.set({to: 'user1', customEvent: 'gift', customExts: {name: 'rose'}, chatType: 'singleChat', success: function(){}, fail: function(){}})
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | -
Properties
|
Returns:
Void