Skip to content

nim_def.msglog_def.NIMMsgLogAPI

Zvicii edited this page Jul 7, 2023 · 6 revisions

Interface: NIMMsgLogAPI

nim_def/msglog_def.NIMMsgLogAPI

Table of contents

Methods

Methods

InitEventHandlers

InitEventHandlers(): void

Returns

void

Defined in

ts/nim_def/msglog_def.ts:383


QueryMsgByIDAysnc

QueryMsgByIDAysnc(clientMsgId, cb, jsonExtension): boolean

Parameters

Name Type
clientMsgId string
cb null | QuerySingleMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:385


QueryMsgAsync

QueryMsgAsync(accid, to_type, limit_count, anchor_msg_time, cb, jsonExtension): boolean

Parameters

Name Type
accid string
to_type NIMSessionType
limit_count number
anchor_msg_time number
cb null | QueryMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:387


GetMessagesDynamically

GetMessagesDynamically(session_id, to_type, from_time, to_time, limit_count, anchor_client_msg_id, anchor_server_msg_id, direction, cb, jsonExtension): void

Parameters

Name Type
session_id string
to_type NIMSessionType
from_time number
to_time number
limit_count number
anchor_client_msg_id string
anchor_server_msg_id string
direction NIMMsglogSearchDirection
cb null | GetMessagesDynamicallyCallback
jsonExtension string

Returns

void

Defined in

ts/nim_def/msglog_def.ts:396


QueryMsgOnlineAsync

QueryMsgOnlineAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgOnlineAsyncParam
cb null | QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:409


QueryMsgByKeywordOnlineAsync

QueryMsgByKeywordOnlineAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgByKeywordOnlineParam
cb null | QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:411


QueryMsgOfSpecifiedTypeInASessionAsync

QueryMsgOfSpecifiedTypeInASessionAsync(to_type, id, limit_count, fromTime, endTime, endClientMsgId, reverse, msgType, cb, jsonExtension): boolean

Parameters

Name Type
to_type NIMSessionType
id string
limit_count number
fromTime number
endTime number
endClientMsgId string
reverse boolean
msgType NIMMessageType[]
cb null | QueryMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:413


QueryMsgByOptionsAsync

QueryMsgByOptionsAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgByOptionsAsyncParam
cb null | QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:426


BatchStatusReadAsync

BatchStatusReadAsync(accid, to_type, cb, jsonExtension): boolean

Parameters

Name Type
accid string
to_type NIMSessionType
cb null | ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:428


BatchStatusDeleteAsync

BatchStatusDeleteAsync(accid, to_type, revert_by_query_online, cb, jsonExtension): boolean

Parameters

Name Type
accid string
to_type NIMSessionType
revert_by_query_online boolean
cb null | ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:430


SetStatusAsync

SetStatusAsync(msg_id, status, cb, jsonExtension): boolean

Parameters

Name Type
msg_id string
status NIMMsgLogStatus
cb null | ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:438


SetSubStatusAsync

SetSubStatusAsync(msg_id, status, cb, jsonExtension): boolean

Parameters

Name Type
msg_id string
status NIMMsgLogSubStatus
cb null | ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:440


WriteMsglogToLocalAsync

WriteMsglogToLocalAsync(talkId, msg, needUpdateSession, composeLastMsg, excludeMsgType, cb): boolean

Parameters

Name Type
talkId string
msg IMMessage
needUpdateSession boolean
composeLastMsg boolean
excludeMsgType number[]
cb null | ModifySingleMsglogCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:442


DeleteBySessionTypeAsync

DeleteBySessionTypeAsync(delSessions, to_type, revert_by_query_online, cb, jsonExtension): boolean

Parameters

Name Type
delSessions boolean
to_type NIMSessionType
revert_by_query_online boolean
cb null | ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:451


DeleteAsync

DeleteAsync(session_id, to_type, msg_id, cb, jsonExtension): boolean

Parameters

Name Type
session_id string
to_type NIMSessionType
msg_id string
cb null | ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:459


DeleteAllAsync

DeleteAllAsync(del_session, revert_by_query_online, cb, jsonExtension): boolean

Parameters

Name Type
del_session boolean
revert_by_query_online boolean
cb null | DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:461


DeleteMsgByTimeAsync

DeleteMsgByTimeAsync(session_id, to_type, revert_by_query_online, timestamp1, timestamp2, cb, jsonExtension): boolean

Parameters

Name Type
session_id string
to_type NIMSessionType
revert_by_query_online boolean
timestamp1 number
timestamp2 number
cb null | DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:463


ExportDbAsync

ExportDbAsync(dst_path, cb, jsonExtension): boolean

Parameters

Name Type
dst_path string
cb null | DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:473


ImportDbAsync

ImportDbAsync(src_path, db_cb, prg_cb, jsonExtension): boolean

Parameters

Name Type
src_path string
db_cb DBFunctionCallback
prg_cb null | ImportDbPrgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:475


SendReceiptAsync

SendReceiptAsync(msg, cb): void

Parameters

Name Type
msg IMMessage
cb null | MessageStatusChangedCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:477


QuerySentMessageBeReaded

QuerySentMessageBeReaded(msg): boolean

Parameters

Name Type
msg IMMessage

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:479


QueryReceivedMsgReceiptSent

QueryReceivedMsgReceiptSent(msg): boolean

Parameters

Name Type
msg IMMessage

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:481


UpdateLocalExtAsync

UpdateLocalExtAsync(msg_id, local_ext, cb, jsonExtension): boolean

Parameters

Name Type
msg_id string
local_ext string
cb null | ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:483


ReadAllAsync

ReadAllAsync(cb, jsonExtension): boolean

Parameters

Name Type
cb null | DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:485


ExportBackupToRemote

ExportBackupToRemote(export_info): boolean

Parameters

Name Type
export_info LogsBackupExportInfo

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:487


ImportBackupToRemote

ImportBackupToRemote(export_info): boolean

Parameters

Name Type
export_info LogsBackupImportInfo

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:489


CancelImportBackupFromRemote

CancelImportBackupFromRemote(): void

Returns

void

Defined in

ts/nim_def/msglog_def.ts:491


CancelExportBackupToRemote

CancelExportBackupToRemote(): void

Returns

void

Defined in

ts/nim_def/msglog_def.ts:493


DeleteHistoryOnlineAsync

DeleteHistoryOnlineAsync(accid, delete_roaming, jsonExtension, cb): void

Parameters

Name Type
accid string
delete_roaming boolean
jsonExtension string
cb null | DeleteHistoryOnLineAsyncExCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:495


DeleteHistoryOnlineAsyncEx

DeleteHistoryOnlineAsyncEx(accid, to_type, needs_notify_self, jsonExtension, cb): void

Parameters

Name Type
accid string
to_type number
needs_notify_self boolean
jsonExtension string
cb null | DeleteHistoryOnLineAsyncExCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:497


DeleteMessageSelfAsync

DeleteMessageSelfAsync(msg, ext, cb): void

Parameters

Name Type
msg IMMessage
ext string
cb null | DeleteMessageSelfAsyncCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:505


QueryMessageIsThreadRoot

QueryMessageIsThreadRoot(client_id, cb): void

Parameters

Name Type
client_id string
cb null | QueryMessageIsThreadRootCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:507


QueryMessageOnline

QueryMessageOnline(param, cb): void

Parameters

Name Type
param QueryMsgAsyncParam
cb null | QueryMessageOnlineCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:509


QueryThreadHistoryMsg

QueryThreadHistoryMsg(msg, param, cb): void

Parameters

Name Type
msg IMMessage
param QueryThreadHistoryMsgAsyncParam
cb null | QueryThreadHistoryMsgCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:511


FullTextSearchOnlineAsync

FullTextSearchOnlineAsync(param, cb): void

Parameters

Name Type
param FullTextSearchOnlineAsyncParam
cb null | FullTextSearchOnlineAsyncCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:513

Clone this wiki locally