new EMCmdMessageBody(action)
- Source:
Command message body constructor.
Parameters:
Name | Type | Description |
---|---|---|
action |
String |
Methods
action() → {String}
- Source:
Get command action.
Returns:
返回命令消息类型
- Type
- String
params() → {Array}
- Source:
Get command action.
Returns:
array is a object list. object is like {"key" : "1", "value" : "1"}
- Type
- Array
setAction(action) → {void}
- Source:
Set command action.
Parameters:
Name | Type | Description |
---|---|---|
action |
String |
Returns:
设置命令消息类型
- Type
- void
setParams(params) → {void}
- Source:
Set command action.
Parameters:
Name | Type | Description |
---|---|---|
params |
Array | params is a object list. object is a key value object. like {"key" : "1", "value" : "1"} |
Returns:
- Type
- void
type() → {Number}
- Source:
Get message body type.
Returns:
返回消息类型
- Type
- Number