AgoraChat SDK for Unity and Windows v1.4.0
Loading...
Searching...
No Matches
AgoraChat.MessageBody.CmdBody Class Reference
Inheritance diagram for AgoraChat.MessageBody.CmdBody:
AgoraChat.IMessageBody

Public Member Functions

 CmdBody (string action, bool deliverOnlineOnly=false)

Public Attributes

string Action
bool DeliverOnlineOnly
Public Attributes inherited from AgoraChat.IMessageBody
MessageBodyType Type

Additional Inherited Members

Properties inherited from AgoraChat.IMessageBody
long OperationTime [get, set]
string OperatorId [get, set]
long OperationCount [get, set]

Detailed Description

The command message body.

Constructor & Destructor Documentation

◆ CmdBody()

AgoraChat.MessageBody.CmdBody.CmdBody ( string action,
bool deliverOnlineOnly = false )

The command message body constructor.

Parameters
actionThe command action.
deliverOnlineOnlyWhether this command message is delivered only to online users.
  • true: Yes.
  • (Default) false: No. The command message is delivered to users, regardless of their online or offline status.

Member Data Documentation

◆ Action

string AgoraChat.MessageBody.CmdBody.Action

The command action.

◆ DeliverOnlineOnly

bool AgoraChat.MessageBody.CmdBody.DeliverOnlineOnly

Whether this command message is delivered only to online users.