createTip method
Future<MsgModel>
createTip({
- required String convId,
- required TipContent content,
- MsgOptionsModel? options,
- MsgOfflinePushModel? offlinePush,
- String ext = "",
创建提示消息
Implementation
Future<MsgModel> createTip({
required String convId,
required TipContent content,
MsgOptionsModel? options,
MsgOfflinePushModel? offlinePush,
String ext = "",
}) {
return _sdkManager.createMsg(
convId: convId,
atUsers: [],
contentType: MsgContentType.tip,
content: content.toJson(),
options: options ??
MsgOptionsModel(
storageForServer: true,
storageForClient: true,
needDecrypt: false,
offlinePush: false,
updateConvMsg: false,
updateUnreadCount: false,
),
offlinePush: offlinePush ??
MsgOfflinePushModel(
title: "",
content: "",
payload: "",
),
ext: ext,
);
}