Command message body
CmdMessageBody body = new CmdMessageBody("delete", null);
io.agora.chat.CmdMessageBody.CmdMessageBody |
( |
String |
action | ) |
|
Construct command message
- Parameters
-
String io.agora.chat.CmdMessageBody.action |
( |
| ) |
|
Get the action
- Returns
- the action
void io.agora.chat.CmdMessageBody.deliverOnlineOnly |
( |
boolean |
onlineOnly | ) |
|
Set whether current cmd msg only deliver to online users. False as default, means deliver to all users
- Parameters
-
onlineOnly | Whether to deliver to online users only |
Map<String, String> io.agora.chat.CmdMessageBody.getParams |
( |
| ) |
|
Get the params map
- Returns
- Map
boolean io.agora.chat.CmdMessageBody.isDeliverOnlineOnly |
( |
| ) |
|
Check whether this cmd msg is delivered to online users.
- Returns
- Boolean, return true means only deliver to online user
String io.agora.chat.CmdMessageBody.toString |
( |
| ) |
|
Get the action of cmd message
- Returns
- String
final Parcelable.Creator<CmdMessageBody> io.agora.chat.CmdMessageBody.CREATOR |
|
static |
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/io/agora/chat/CmdMessageBody.java