createCommand method
Future<MsgModel>
createCommand({
- String senderInfo = "",
- required String convId,
- List<
String> atUsers = const [], - required CommandContent content,
- MsgOptionsModel? options,
- required MsgOfflinePushModel offlinePush,
- String ext = "",
创建命令消息
Implementation
Future<MsgModel> createCommand({
String senderInfo = "",
required String convId,
List<String> atUsers = const [],
required CommandContent content,
MsgOptionsModel? options,
required MsgOfflinePushModel offlinePush,
String ext = "",
}) {
return _sdkManager.createMsg(
senderInfo: senderInfo,
convId: convId,
atUsers: atUsers,
contentType: MsgContentType.command,
content: content.toJson(),
options: options ??
MsgOptionsModel(
storageForServer: true,
storageForClient: true,
needDecrypt: false,
offlinePush: true,
updateConvMsg: true,
updateUnreadCount: true,
),
offlinePush: offlinePush,
ext: ext,
);
}