Go to the documentation of this file.
7 #ifndef NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
8 #define NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
52 const void* user_data);
64 const void* user_data);
120 const char* json_extension,
121 const void* user_data);
143 typedef void (*
nim_msglog_res_cb_func)(
int res_code,
const char* msg_id,
const char* json_extension,
const void* user_data);
200 const char* client_id,
203 const void* user_data);
222 const char* root_msg,
226 const void* user_data);
412 enum NIMFullTextSearchRule { kNIMFullTextSearchOrderByAsc = 1, kNIMFullTextSearchOrderByDesc = 2, kNIMFullTextSearchNoGroupBySession = 4 };
421 char* (*ExportBackupToRemotePackageCallback)(
const char*
const file_path,
void* user_data);
428 char* (*ExportBackupToRemoteEncryptCallback)(
const char*
const file_path,
const char*
const encrypt_key,
void* user_data);
449 bool (*ExportBackupToRemoteLogFiter)(
const char*
const msg,
void* user_data);
454 void (*NewPathRelease)(
char** data_ptr);
464 char* (*ImportBackupFromRemoteUnPackageCallback)(
const char*
const file_path,
void* user_data);
471 char* (*ImportBackupFromRemoteDecryptCallback)(
const char*
const file_path,
const char*
const encrypt_key,
void* user_data);
490 void (*NewPathRelease)(
char**);
647 char from_account[128];
648 char to_account[128];
658 char from_account[128];
659 char to_account[128];
677 #endif // NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
@ kNIMMsgLogStatusDraft
Definition: nim_msglog_def.h:292
@ kNIMMessageTypeFile
Definition: nim_msglog_def.h:264
static const char * kNIMNotificationIdNetCallEXTKey
string 会发起时传入的 custominfo参数
Definition: nim_msglog_def.h:614
@ kNIMSessionTypeSuperTeam
Definition: nim_session_def.h:19
@ kNIMMsgLogSubStatusNotPlaying
Definition: nim_msglog_def.h:376
@ LogsBackupRemoteState_IMP_DownloadBackupFailed
Definition: nim_msglog_def.h:394
@ kNIMNotificationIdSuperTeamLeave
Definition: nim_msglog_def.h:359
void(* nim_msglog_delete_history_online_notify_cb_func)(NIMDeleteSessionHistoryMessagesNotifyInfo *info_list_head_node, int node_count, const void *user_data)
Definition: nim_msglog_def.h:62
NIMMsgLogQueryRange
Definition: nim_msglog_def.h:530
@ kNIMNotificationIdLocalRejectApply
Definition: nim_msglog_def.h:334
@ kNIMNotificationIdTeamOwnerTransfer
Definition: nim_msglog_def.h:308
@ kNIMMessageTypeNotification
Definition: nim_msglog_def.h:263
@ kNIMNotificationIdTeamInvite
Definition: nim_msglog_def.h:299
@ kNIMMessageFeatureRoamMsg
Definition: nim_msglog_def.h:277
int32_t reverse
Definition: nim_msglog_def.h:671
@ kNIMNotificationIdLocalNetcallCanceled
Definition: nim_msglog_def.h:352
@ kNIMMessageFeatureLeaveMsg
Definition: nim_msglog_def.h:276
@ LogsBackupRemoteState_IMP_RAWError
Definition: nim_msglog_def.h:395
static const char * kNIMNotificationIdNetCallChannelKey
int64 通道id
Definition: nim_msglog_def.h:608
NIMMessageType
Definition: nim_msglog_def.h:257
int64_t time
Definition: nim_msglog_def.h:651
@ kNIMNotificationIdNetcallReject
Definition: nim_msglog_def.h:319
@ kNIMMsgLogStatusDeleted
Definition: nim_msglog_def.h:287
static const char * kNIMMsglogQueryJsonExtensionKeyDirection
NIMMsglogSearchDirection,默认为kForward.
Definition: nim_msglog_def.h:498
@ LogsBackupRemoteState_IMP_ParseRAWError
Definition: nim_msglog_def.h:396
int64_t time
Definition: nim_msglog_def.h:20
static const char * kNIMNotificationKeyDataInvalidIds
string array
Definition: nim_msglog_def.h:579
bool auto_download_attachment_
Definition: nim_msglog_def.h:550
int64_t to_time
Definition: nim_msglog_def.h:668
@ LogsBackupRemoteState_EXP_SyncToSrvError
Definition: nim_msglog_def.h:402
@ kNIMNotificationIdLocalApplyTeam
Definition: nim_msglog_def.h:333
static const char * kNIMMsglogJsonExtKeyComposeLastMsg
bool 插入新消息若需要更新会话数据,指定是否需要绑定历史消息中的最后一条消息。true:需要,false:不需要
Definition: nim_msglog_def.h:518
NIMMessageFeature
Definition: nim_msglog_def.h:274
void * user_data_
Definition: nim_msglog_def.h:491
@ kNIMMsglogQuerySourceLocal
Definition: nim_msglog_def.h:252
@ kNIMNotificationIdSuperTeamAddManager
Definition: nim_msglog_def.h:364
void(* nim_msglog_import_prg_cb_func)(int64_t imported_count, int64_t total_count, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:174
单向删除某条消息参数
Definition: nim_msglog_def.h:645
@ kNIMMsgLogQueryRangeSuperTeam
Definition: nim_msglog_def.h:533
static const char * kNIMMsglogQueryKeySource
Definition: nim_msglog_def.h:245
static const char * kNIMDELMSGSelfNotifyKeyEXT
string 用户自定义数据
Definition: nim_msglog_def.h:630
@ kNIMNotificationIdLocalNetcallNoResponse
Definition: nim_msglog_def.h:350
@ kNIMNotificationIdLocalGetTeamInfo
Definition: nim_msglog_def.h:338
void(* nim_msglog_delete_message_self_notify_cb_func)(const char *infos, const void *user_data)
Definition: nim_msglog_def.h:80
static const char * kNIMNotificationIdNetCallIdsKey
StrArray 帐号
Definition: nim_msglog_def.h:606
@ kNIMNotificationIdSuperTeamUpdate
Definition: nim_msglog_def.h:360
int64_t exclude_msg_id
Definition: nim_msglog_def.h:669
@ kNIMNotificationIdTeamApplyPass
Definition: nim_msglog_def.h:307
int64_t from_time
Definition: nim_msglog_def.h:667
static const char * kNIMNotificationKeyTeamMember
string, team_member_property 群组成员信息 Json Keys
Definition: nim_msglog_def.h:589
@ LogsBackupRemoteState_FinalState_Begin
Definition: nim_msglog_def.h:407
@ kNIMMsgLogStatusRead
Definition: nim_msglog_def.h:286
static const char * kNIMNotificationKeyData
json object 包含以下5种可能的数据结构
Definition: nim_msglog_def.h:575
@ kNIMNotificationIdLocalUpdateOtherNick
Definition: nim_msglog_def.h:337
static const char * kNIMMsglogStatusChangedKeyTalkID
Definition: nim_msglog_def.h:231
NIMNotificationId
Definition: nim_msglog_def.h:298
static const char * kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:509
@ kNIMNotificationIdTeamKick
Definition: nim_msglog_def.h:301
int64_t server_id
Definition: nim_msglog_def.h:649
@ LogsBackupRemoteState_EXP_LocalDBFailed
Definition: nim_msglog_def.h:399
static const char * kNIMMsglogStatusChangedKeyMsgTimetag
Definition: nim_msglog_def.h:232
@ kNIMNotificationIdNetcallBill
Definition: nim_msglog_def.h:317
int64_t end_time_
Definition: nim_msglog_def.h:561
int64_t end_msg_id_
Definition: nim_msglog_def.h:547
char * encrypt_key_
Definition: nim_msglog_def.h:429
void(* nim_msglog_query_single_cb_func)(int res_code, const char *msg_id, const char *result, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:93
@ kNIMMessageTypeAudio
Definition: nim_msglog_def.h:260
@ kBackward
Definition: nim_msglog_def.h:526
NIMMsgLogSubStatus
Definition: nim_msglog_def.h:373
@ kNIMNotificationIdLocalRejectInvite
Definition: nim_msglog_def.h:335
@ kNIMMessageTypeText
Definition: nim_msglog_def.h:258
@ kNIMMsgLogQueryRangeAllP2P
Definition: nim_msglog_def.h:535
enum NIMMessageType * msg_type_list_
Definition: nim_msglog_def.h:551
void(* nim_msglog_status_changed_cb_func)(int res_code, const char *result, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:184
@ kNIMNotificationIdTeamAddManager
Definition: nim_msglog_def.h:309
@ kNIMNotificationIdLocalNetcallReject
Definition: nim_msglog_def.h:348
static const char * kNIMMsglogJsonExtKeyQueryMsgTypeList
array 要查询的消息类型
Definition: nim_msglog_def.h:511
static const char * kNIMTEAMMSGACKREADSUCCESSIDSKEY
string json array 群组消息标记已读成功的msg id list key
Definition: nim_msglog_def.h:637
@ kNIMMessageTypeTips
Definition: nim_msglog_def.h:265
@ LogsBackupRemoteState_EXP_UploadBackupFailed
Definition: nim_msglog_def.h:401
@ kNIMNotificationIdLocalGetTeamList
Definition: nim_msglog_def.h:340
bool reverse_
Definition: nim_msglog_def.h:562
@ kNIMMessageTypeCustom
Definition: nim_msglog_def.h:268
@ kNIMNotificationIdLocalMute
Definition: nim_msglog_def.h:342
@ kNIMNotificationIdTeamSyncCreate
Definition: nim_msglog_def.h:323
@ kNIMMsgLogStatusUnread
Definition: nim_msglog_def.h:285
@ kNIMNotificationIdLocalUpdateMemberProperty
Definition: nim_msglog_def.h:336
int type_list_length_
Definition: nim_msglog_def.h:552
int limit
Definition: nim_msglog_def.h:559
static const char * kNIMMsglogJsonExtKeyExcludeMsgType
array 绑定的消息要排除的类型,始终排除掉未知类型(1000)消息
Definition: nim_msglog_def.h:520
static const char * kNIMNotificationKeyTeamInfo
string, team_info 群组信息 Json Keys
Definition: nim_msglog_def.h:587
@ kNIMNotificationIdSuperTeamOwnerTransfer
Definition: nim_msglog_def.h:363
void(* nim_msglog_res_cb_func)(int res_code, const char *msg_id, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:143
void(* nim_msglog_res_ex_cb_func)(int res_code, const char *uid, enum NIMSessionType type, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:155
@ LogsBackupRemoteState_UnDef
Definition: nim_msglog_def.h:388
@ LogsBackupRemoteState_Done_NoLogs
Definition: nim_msglog_def.h:405
@ kNIMMessageFeatureDefault
Definition: nim_msglog_def.h:275
@ LogsBackupRemoteState_Begin
Definition: nim_msglog_def.h:387
void(* nim_msglog_full_text_search_online_cb_func)(int res_code, uint32_t count, const char *result, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:133
@ kNIMMessageTypeRobot
Definition: nim_msglog_def.h:266
@ LogsBackupRemoteState_IMP_SyncFromSrvError
Definition: nim_msglog_def.h:393
int64_t end_time_
Definition: nim_msglog_def.h:546
static const char * kNIMNotificationKeyAttach
string array, 应用自定义扩展字段
Definition: nim_msglog_def.h:593
@ kNIMNotificationIdLocalCreateTeam
Definition: nim_msglog_def.h:332
NIMMsgLogStatus
Definition: nim_msglog_def.h:283
static const char * kNIMNotificationIdNetCallDurationKey
int64 通话时长 单位秒
Definition: nim_msglog_def.h:610
static const char * kNIMNotificationIdNetCallTypeKey
int 通话类型对应NIMVideoChatMode
Definition: nim_msglog_def.h:602
@ LogsBackupRemoteOperate_Export
Definition: nim_msglog_def.h:382
static const char * kNIMTEAMMSGACKREADSIGNOREDIDSKEY
string json array 群组消息标记已读忽略的msg id list key(消息不需要标记,或者已经标记过)
Definition: nim_msglog_def.h:641
@ kNIMMsgLogQueryRangeAllTeam
Definition: nim_msglog_def.h:536
@ LogsBackupRemoteState_SDKError
Definition: nim_msglog_def.h:390
int64_t time
Definition: nim_msglog_def.h:662
云端查询某条消息参数一般用在thread聊天场景中
Definition: nim_msglog_def.h:656
@ kNIMNotificationIdTeamRemoveManager
Definition: nim_msglog_def.h:310
@ kNIMMessageTypeUnknown
Definition: nim_msglog_def.h:270
@ LogsBackupRemoteOperate_Import
Definition: nim_msglog_def.h:383
static const char * kNIMDELMSGSelfNotifyKeySessionID
string, 会话 ID
Definition: nim_msglog_def.h:626
LogsBackupRemoteState
Definition: nim_msglog_def.h:386
static const char * kNIMNotificationIdNetCallTimeKey
int64 时间 单位毫秒
Definition: nim_msglog_def.h:604
static const char * kNIMNotificationKeyId
int, 见NIMNotificationId
Definition: nim_msglog_def.h:573
int64_t from_time_
Definition: nim_msglog_def.h:560
void(* nim_msglog_delete_history_online_res_cb_func)(int res_code, const char *accid, const void *user_data)
Definition: nim_msglog_def.h:31
void * user_data_
Definition: nim_msglog_def.h:455
@ kNIMMessageTypeVideo
Definition: nim_msglog_def.h:261
@ kNIMMsgLogQueryRangeTeam
Definition: nim_msglog_def.h:532
@ kNIMMsgLogSubStatusPlayed
Definition: nim_msglog_def.h:377
@ kNIMSessionTypeTeam
Definition: nim_session_def.h:18
@ kNIMMessageTypeImage
Definition: nim_msglog_def.h:259
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:458
@ kNIMMessageTypeLocation
Definition: nim_msglog_def.h:262
@ kNIMNotificationIdSuperTeamDismiss
Definition: nim_msglog_def.h:362
void(* nim_msglog_delete_message_self_res_cb_func)(int res_code, const void *user_data)
Definition: nim_msglog_def.h:72
@ kNIMMessageFeatureSyncMsg
Definition: nim_msglog_def.h:278
void(* nim_msglog_query_message_is_thread_root_async_cb_func)(int res_code, const char *client_id, bool is_root, int reply_count, const void *user_data)
Definition: nim_msglog_def.h:199
删除与某一会话的历史记录推送数据定义
Definition: nim_msglog_def.h:17
@ kNIMMsgLogStatusNone
Definition: nim_msglog_def.h:284
@ kNIMMsgLogQueryRangeUnknown
Definition: nim_msglog_def.h:538
@ kNIMMsgLogQueryRangeAllSuperTeam
Definition: nim_msglog_def.h:537
bool is_exclusion_type_
Definition: nim_msglog_def.h:553
static const char * kNIMNotificationKeyDataMute
int
Definition: nim_msglog_def.h:585
int64_t from_time_
Definition: nim_msglog_def.h:545
@ kNIMMsgLogStatusSendCancel
Definition: nim_msglog_def.h:293
NIM SDK 及 NIM ChatRoom SDK 公用头文件
@ kNIMMessageFeatureCustomizedMsg
Definition: nim_msglog_def.h:279
根据关键字村云端查询消息记录的参数定义
Definition: nim_msglog_def.h:557
NIMFullTextSearchRule
全文检索排序规则
Definition: nim_msglog_def.h:412
static const char * kNIMMsglogQueryJsonExtensionKeyReverse
bool,返回的消息历史排序正序(false)/逆序(true),默认为false
Definition: nim_msglog_def.h:500
@ LogsBackupRemoteState_EXP_RAWError
Definition: nim_msglog_def.h:400
@ LogsBackupRemoteState_IMP_NoBackup
Definition: nim_msglog_def.h:392
bool need_save_to_local_
Definition: nim_msglog_def.h:549
static const char * kNIMNotificationKeyUserNameCards
json string array, 操作者和被操作者双方的 用户名片 Json Keys
Definition: nim_msglog_def.h:591
@ kNIMNotificationIdTeamInviteAccept
Definition: nim_msglog_def.h:311
void(* nim_msglog_delete_history_online_res_cb_func_ex)(int res_code, const char *accid, enum NIMSessionType type, uint64_t time, const char *ext, const void *user_data)
Definition: nim_msglog_def.h:47
@ kNIMMsgLogStatusSendFailed
Definition: nim_msglog_def.h:289
@ kNIMNotificationIdTeamDismiss
Definition: nim_msglog_def.h:306
@ kNIMMsgLogStatusSending
Definition: nim_msglog_def.h:288
static const char * kNIMNotificationKeyDataLeave
bool
Definition: nim_msglog_def.h:583
NIMMsglogQuerySource
Definition: nim_msglog_def.h:251
@ kNIMNotificationIdSuperTeamMuteMember
Definition: nim_msglog_def.h:366
@ kNIMNotificationIdLocalMuteMember
Definition: nim_msglog_def.h:341
云端查询thread聊天历史参数
Definition: nim_msglog_def.h:666
@ LogsBackupRemoteState_UserCanceled
Definition: nim_msglog_def.h:389
void(* nim_msglog_modify_res_cb_func)(int res_code, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:164
static const char * kNIMNotificationIdNetCallFromKey
string 发起者帐号
Definition: nim_msglog_def.h:612
static const char * kNIMTEAMMSGACKREADFAILUREIDSKEY
string json array 群组消息标记已读失败的msg id list key
Definition: nim_msglog_def.h:639
@ kNIMMsgLogSubStatusNone
Definition: nim_msglog_def.h:374
void(* nim_msglog_query_cb_func)(int res_code, const char *id, enum NIMSessionType type, const char *result, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:116
@ kNIMMsgLogStatusSent
Definition: nim_msglog_def.h:290
int64_t server_id
Definition: nim_msglog_def.h:660
@ kNIMNotificationIdTeamSyncUpdateMemberProperty
Definition: nim_msglog_def.h:327
NIMSessionType
Definition: nim_session_def.h:16
@ kNIMMsgLogQueryRangeP2P
Definition: nim_msglog_def.h:531
LogsBackupRemoteOperate
Definition: nim_msglog_def.h:381
static const char * kNIMNotificationKeyDataIds
string array
Definition: nim_msglog_def.h:577
@ LogsBackupRemoteState_End
Definition: nim_msglog_def.h:406
@ kNIMNotificationIdTeamUpdate
Definition: nim_msglog_def.h:304
static const char * kNIMDELMSGSelfNotifyKeyMsgClientID
string 消息ID
Definition: nim_msglog_def.h:628
int limit_count_
Definition: nim_msglog_def.h:544
@ kNIMMessageTypeG2NetCall
Definition: nim_msglog_def.h:267
@ kNIMMsgLogStatusRefused
Definition: nim_msglog_def.h:294
@ kNIMNotificationIdLocalGetTeamMsgUnreadList
Definition: nim_msglog_def.h:345
@ kNIMNotificationIdSuperTeamKick
Definition: nim_msglog_def.h:357
@ kNIMNotificationIdLocalGetTeamMsgUnreadCount
Definition: nim_msglog_def.h:343
@ kNIMNotificationIdSuperTeamRemoveManager
Definition: nim_msglog_def.h:365
static const char * kNIMMsglogQueryJsonExtensionKeyEndTime
int64_t,查询消息的截止时间,如果direction为kForward,则截止时间应小于anchor_msg_time,否则大于anchor_msg_time,...
Definition: nim_msglog_def.h:502
@ kForward
Definition: nim_msglog_def.h:525
@ kNIMMsgLogStatusReceipt
Definition: nim_msglog_def.h:291
@ kNIMNotificationIdSuperTeamInvite
Definition: nim_msglog_def.h:355
void(* nim_msglog_query_thread_history_msg_cb_func)(int res_code, const char *root_msg, int total, uint64_t timestamp, const char *msgs, const void *user_data)
Definition: nim_msglog_def.h:221
@ LogsBackupRemoteState_Done
Definition: nim_msglog_def.h:404
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:542
@ kNIMMsglogQuerySourceServer
Definition: nim_msglog_def.h:253
@ kNIMSessionTypeP2P
Definition: nim_session_def.h:17
@ kNIMNotificationIdTeamMuteMember
Definition: nim_msglog_def.h:312
导出消息记录到云端参数定义
Definition: nim_msglog_def.h:415
bool reverse_
Definition: nim_msglog_def.h:548
NIMMsglogSearchDirection
Definition: nim_msglog_def.h:524
@ kNIMNotificationIdSuperTeamApplyPass
Definition: nim_msglog_def.h:368
int32_t limit
Definition: nim_msglog_def.h:670
static const char * kNIMMsglogStatusChangedKeyStatus
Definition: nim_msglog_def.h:233
@ LogsBackupRemoteState_IMP_LocalDBFailed
Definition: nim_msglog_def.h:397
@ kNIMNotificationIdSuperTeamInviteAccept
Definition: nim_msglog_def.h:369
@ kNIMNotificationIdTeamLeave
Definition: nim_msglog_def.h:303
static const char * kNIMNotificationKeyDataId
string
Definition: nim_msglog_def.h:581
static const char * kNIMMsglogQueryKeyContent
Definition: nim_msglog_def.h:246
static const char * kNIMMsglogQueryKeyCount
Definition: nim_msglog_def.h:244
@ kNIMNotificationIdTeamMemberChanged
Definition: nim_msglog_def.h:325
@ kNIMMsgLogQueryRangeAll
Definition: nim_msglog_def.h:534
@ kNIMNotificationIdNetcallMiss
Definition: nim_msglog_def.h:315