Skip to content

nim_def.msglog_def.NIMMsgLogAPI

Zvicii edited this page Oct 24, 2022 · 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:360


QueryMsgByIDAysnc

QueryMsgByIDAysnc(clientMsgId, cb, jsonExtension): boolean

Parameters

Name Type
clientMsgId string
cb QuerySingleMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:362


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 QueryMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:364


QueryMsgOnlineAsync

QueryMsgOnlineAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgOnlineAsyncParam
cb QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:366


QueryMsgByKeywordOnlineAsync

QueryMsgByKeywordOnlineAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgByKeywordOnlineParam
cb QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:368


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 QueryMsgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:370


QueryMsgByOptionsAsync

QueryMsgByOptionsAsync(param, cb): boolean

Parameters

Name Type
param QueryMsgByOptionsAsyncParam
cb QueryMsgCallback

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:383


BatchStatusReadAsync

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

Parameters

Name Type
accid string
to_type NIMSessionType
cb ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:385


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 ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:387


SetStatusAsync

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

Parameters

Name Type
msg_id string
status NIMMsgLogStatus
cb ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:395


SetSubStatusAsync

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

Parameters

Name Type
msg_id string
status NIMMsgLogSubStatus
cb ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:397


WriteMsglogToLocalAsync

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

Parameters

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

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:399


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 ModifyMultipleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:408


DeleteAsync

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

Parameters

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

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:416


DeleteAllAsync

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

Parameters

Name Type
del_session boolean
revert_by_query_online boolean
cb DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:418


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 DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:420


ExportDbAsync

ExportDbAsync(dst_path, cb, jsonExtension): boolean

Parameters

Name Type
dst_path string
cb DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:430


ImportDbAsync

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

Parameters

Name Type
src_path string
db_cb DBFunctionCallback
prg_cb ImportDbPrgCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:432


SendReceiptAsync

SendReceiptAsync(msg, cb): void

Parameters

Name Type
msg IMMessage
cb MessageStatusChangedCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:434


QuerySentMessageBeReaded

QuerySentMessageBeReaded(msg): boolean

Parameters

Name Type
msg IMMessage

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:436


QueryReceivedMsgReceiptSent

QueryReceivedMsgReceiptSent(msg): boolean

Parameters

Name Type
msg IMMessage

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:438


UpdateLocalExtAsync

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

Parameters

Name Type
msg_id string
local_ext string
cb ModifySingleMsglogCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:440


ReadAllAsync

ReadAllAsync(cb, jsonExtension): boolean

Parameters

Name Type
cb DBFunctionCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:442


ExportBackupToRemote

ExportBackupToRemote(export_info): boolean

Parameters

Name Type
export_info LogsBackupExportInfo

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:444


ImportBackupToRemote

ImportBackupToRemote(export_info): boolean

Parameters

Name Type
export_info LogsBackupImportInfo

Returns

boolean

Defined in

ts/nim_def/msglog_def.ts:446


CancelImportBackupFromRemote

CancelImportBackupFromRemote(): void

Returns

void

Defined in

ts/nim_def/msglog_def.ts:448


CancelExportBackupToRemote

CancelExportBackupToRemote(): void

Returns

void

Defined in

ts/nim_def/msglog_def.ts:450


DeleteHistoryOnlineAsync

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

Parameters

Name Type
accid string
delete_roaming boolean
jsonExtension string
cb DeleteHistoryOnLineAsyncExCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:452


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 DeleteHistoryOnLineAsyncExCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:454


DeleteMessageSelfAsync

DeleteMessageSelfAsync(msg, ext, cb): void

Parameters

Name Type
msg IMMessage
ext string
cb DeleteMessageSelfAsyncCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:456


QueryMessageIsThreadRoot

QueryMessageIsThreadRoot(client_id, cb): void

Parameters

Name Type
client_id string
cb QueryMessageIsThreadRootCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:458


QueryMessageOnline

QueryMessageOnline(param, cb): void

Parameters

Name Type
param QueryMsgAsyncParam
cb QueryMessageOnlineCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:460


QueryThreadHistoryMsg

QueryThreadHistoryMsg(msg, param, cb): void

Parameters

Name Type
msg IMMessage
param QueryThreadHistoryMsgAsyncParam
cb QueryThreadHistoryMsgCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:462


FullTextSearchOnlineAsync

FullTextSearchOnlineAsync(param, cb): void

Parameters

Name Type
param FullTextSearchOnlineAsyncParam
cb FullTextSearchOnlineAsyncCallback

Returns

void

Defined in

ts/nim_def/msglog_def.ts:464

Clone this wiki locally