new location()
location message
Returns:
message:object
Methods
set(options)
Building location message
Example
let message = New Message('location', id); message.set({to: 'user1', addr: 'Tom's home', lat: 51.50, lng:-0.12, chatType: 'singleChat', success: function(){}, fail: function(){}})
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | -
Properties
|
Returns:
Void