createTip method

Future<MsgModel> createTip({
  1. required String convId,
  2. required TipContent content,
  3. MsgOptionsModel? options,
  4. MsgOfflinePushModel? offlinePush,
  5. 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,
  );
}