7#ifndef NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
8#define NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
72 const void* user_data);
84 const void* user_data);
148 const char* json_extension,
149 const void* user_data);
171typedef void (*
nim_msglog_res_cb_func)(
int res_code,
const char* msg_id,
const char* json_extension,
const void* user_data);
228 const char* client_id,
231 const void* user_data);
250 const char* root_msg,
254 const void* user_data);
266 const char* error_message,
267 const void* user_data);
553 char* (*ExportBackupToRemotePackageCallback)(
const char*
const file_path,
void* user_data);
560 char* (*ExportBackupToRemoteEncryptCallback)(
const char*
const file_path,
const char*
const encrypt_key,
void* user_data);
582 bool (*ExportBackupToRemoteLogFiter)(
const char*
const msg,
void* user_data);
587 void (*NewPathRelease)(
char** data_ptr);
598 char* (*ImportBackupFromRemoteUnPackageCallback)(
const char*
const file_path,
void* user_data);
605 char* (*ImportBackupFromRemoteDecryptCallback)(
const char*
const file_path,
const char*
const encrypt_key,
void* user_data);
624 void (*NewPathRelease)(
char**);
856 char from_account[128];
858 char to_account[128];
874 char from_account[128];
876 char to_account[128];
static const char * kNIMMsglogJsonExtKeyQueryMsgTypeList
array 要查询的消息类型
Definition: nim_msglog_def.h:646
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:212
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:183
static const char * kNIMNotificationIdNetCallChannelKey
int64 通道id
Definition: nim_msglog_def.h:815
void(* nim_msglog_is_msglog_index_built_cb_func)(bool is_built, const void *user_data)
Definition: nim_msglog_def.h:261
static const char * kNIMNotificationKeyTeamInfo
string, team_info 群组信息 Json Keys
Definition: nim_msglog_def.h:794
static const char * kNIMNotificationKeyAttach
string array, 应用自定义扩展字段
Definition: nim_msglog_def.h:800
static const char * kNIMMsglogReliable
Definition: nim_msglog_def.h:295
static const char * kNIMTEAMMSGACKREADFAILUREIDSKEY
string json array 群组消息标记已读失败的msg id list key
Definition: nim_msglog_def.h:846
static const char * kNIMNotificationIdNetCallEXTKey
string 会发起时传入的 custominfo参数
Definition: nim_msglog_def.h:821
LogsBackupRemoteOperate
Definition: nim_msglog_def.h:484
@ LogsBackupRemoteOperate_Export
导出
Definition: nim_msglog_def.h:486
@ LogsBackupRemoteOperate_Import
导入
Definition: nim_msglog_def.h:488
static const char * kNIMNotificationIdNetCallTypeKey
int 通话类型对应NIMVideoChatMode
Definition: nim_msglog_def.h:809
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:144
static const char * kNIMMsglogQueryJsonExtensionKeyDirection
NIMMsglogSearchDirection,默认为kForward
Definition: nim_msglog_def.h:633
void(* nim_msglog_delete_message_self_notify_cb_func)(const char *infos, const void *user_data)
Definition: nim_msglog_def.h:108
NIMMsgLogStatus
Definition: nim_msglog_def.h:351
@ kNIMMsgLogStatusSent
已发送
Definition: nim_msglog_def.h:365
@ kNIMMsgLogStatusSendCancel
发送取消
Definition: nim_msglog_def.h:371
@ kNIMMsgLogStatusRead
收到消息,已读
Definition: nim_msglog_def.h:357
@ kNIMMsgLogStatusUnread
收到消息,未读
Definition: nim_msglog_def.h:355
@ kNIMMsgLogStatusReceipt
对方已读发送的内容
Definition: nim_msglog_def.h:367
@ kNIMMsgLogStatusDeleted
已删
Definition: nim_msglog_def.h:359
@ kNIMMsgLogStatusSending
发送中
Definition: nim_msglog_def.h:361
@ kNIMMsgLogStatusNone
默认,不能当查询条件,意义太多
Definition: nim_msglog_def.h:353
@ kNIMMsgLogStatusSendFailed
发送失败
Definition: nim_msglog_def.h:363
@ kNIMMsgLogStatusDraft
草稿
Definition: nim_msglog_def.h:369
@ kNIMMsgLogStatusRefused
被对方拒绝,比如被对方加入黑名单等等
Definition: nim_msglog_def.h:373
NIMMsglogQuerySource
Definition: nim_msglog_def.h:301
@ kNIMMsglogQuerySourceLocal
本地查询
Definition: nim_msglog_def.h:303
@ kNIMMsglogQuerySourceServer
云端查询
Definition: nim_msglog_def.h:305
static const char * kNIMDELMSGSelfNotifyKeyEXT
string 用户自定义数据
Definition: nim_msglog_def.h:837
void(* nim_msglog_delete_message_self_res_cb_func)(int res_code, const void *user_data)
Definition: nim_msglog_def.h:100
static const char * kNIMNotificationIdNetCallFromKey
string 发起者帐号
Definition: nim_msglog_def.h:819
NIMMessageType
Definition: nim_msglog_def.h:309
@ kNIMMessageTypeCustom
自定义消息
Definition: nim_msglog_def.h:331
@ kNIMMessageTypeAudio
声音类型消息
Definition: nim_msglog_def.h:315
@ kNIMMessageTypeUnknown
未知类型消息,本地使用,发送时勿使用,作为默认值
Definition: nim_msglog_def.h:333
@ kNIMMessageTypeVideo
视频类型消息
Definition: nim_msglog_def.h:317
@ kNIMMessageTypeTips
提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段
Definition: nim_msglog_def.h:325
@ kNIMMessageTypeG2NetCall
G2话单消息
Definition: nim_msglog_def.h:329
@ kNIMMessageTypeImage
图片类型消息
Definition: nim_msglog_def.h:313
@ kNIMMessageTypeFile
文件类型消息
Definition: nim_msglog_def.h:323
@ kNIMMessageTypeRobot
波特机器人消息
Definition: nim_msglog_def.h:327
@ kNIMMessageTypeText
文本类型消息
Definition: nim_msglog_def.h:311
@ kNIMMessageTypeLocation
位置类型消息
Definition: nim_msglog_def.h:319
@ kNIMMessageTypeNotification
系统类型通知(包括入群出群通知等) NIMNotificationId
Definition: nim_msglog_def.h:321
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:227
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:67
static const char * kNIMMsglogQueryJsonExtensionKeyEndTime
int64_t,查询消息的截止时间,如果direction为kForward,则截止时间应小于anchor_msg_time,否则大于anchor_msg_time,...
Definition: nim_msglog_def.h:637
static const char * kNIMDELMSGSelfNotifyKeyMsgClientID
string 消息ID
Definition: nim_msglog_def.h:835
static const char * kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:644
static const char * kNIMNotificationKeyDataId
string
Definition: nim_msglog_def.h:788
static const char * kNIMNotificationKeyTeamMember
string, team_member_property 群组成员信息 Json Keys
Definition: nim_msglog_def.h:796
NIMAIMessageStatus
AI 数字人消息状态
Definition: nim_msglog_def.h:537
@ kNIMMessageAIStatusResponse
表示是数字人响应艾特的消息
Definition: nim_msglog_def.h:543
@ kNIMMessageAIStatusUnknown
默认
Definition: nim_msglog_def.h:539
@ kNIMMessageAIStatusAt
表示是一个艾特数字人的消息
Definition: nim_msglog_def.h:541
NIMMsgLogSubStatus
Definition: nim_msglog_def.h:473
@ kNIMMsgLogSubStatusNotPlaying
未播放
Definition: nim_msglog_def.h:478
@ kNIMMsgLogSubStatusNone
默认状态
Definition: nim_msglog_def.h:475
@ kNIMMsgLogSubStatusPlayed
已播放
Definition: nim_msglog_def.h:480
static const char * kNIMNotificationKeyUserNameCards
json string array, 操作者和被操作者双方的 用户名片 Json Keys
Definition: nim_msglog_def.h:798
bool(* nim_msglog_history_message_filter_func)(const char *content, const void *user_data)
Definition: nim_msglog_def.h:92
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:121
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:171
static const char * kNIMNotificationKeyId
int, 见NIMNotificationId
Definition: nim_msglog_def.h:780
NIMMessageFeature
Definition: nim_msglog_def.h:337
@ kNIMMessageFeatureRoamMsg
漫游消息
Definition: nim_msglog_def.h:343
@ kNIMMessageFeatureCustomizedMsg
透传消息
Definition: nim_msglog_def.h:347
@ kNIMMessageFeatureDefault
默认
Definition: nim_msglog_def.h:339
@ kNIMMessageFeatureSyncMsg
同步消息
Definition: nim_msglog_def.h:345
@ kNIMMessageFeatureLeaveMsg
离线消息
Definition: nim_msglog_def.h:341
void(* nim_msglog_build_msglog_indexes_progress_cb_func)(uint32_t total, uint32_t built_count, const void *user_data)
Definition: nim_msglog_def.h:263
NIMNotificationId
Definition: nim_msglog_def.h:377
@ kNIMNotificationIdLocalUpdateMemberProperty
本地操作更新群成员属性 {"team_member" : team_member_info}
Definition: nim_msglog_def.h:425
@ kNIMNotificationIdNetcallBill
话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}
Definition: nim_msglog_def.h:403
@ kNIMNotificationIdTeamUpdate
群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:385
@ kNIMNotificationIdLocalCreateTeam
本地操作创建群 {"ids" : ["a1", "a2"]}
Definition: nim_msglog_def.h:417
@ kNIMNotificationIdSuperTeamLeave
退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:453
@ kNIMNotificationIdTeamMemberChanged
群成员变更{"team_member" : team_member_info}
Definition: nim_msglog_def.h:411
@ kNIMNotificationIdLocalMuteMember
本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:433
@ kNIMNotificationIdSuperTeamMuteMember
超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:465
@ kNIMNotificationIdLocalRejectApply
本地操作拒绝申请 {"id":"a1"}
Definition: nim_msglog_def.h:421
@ kNIMNotificationIdSuperTeamApplyPass
超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:467
@ kNIMNotificationIdSuperTeamOwnerTransfer
超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:459
@ kNIMNotificationIdLocalGetTeamInfo
本地操作获取群信息 {"team_info":team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:429
@ kNIMNotificationIdTeamMuteMember
禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1",...
Definition: nim_msglog_def.h:399
@ kNIMNotificationIdSuperTeamDismiss
超大群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:457
@ kNIMNotificationIdSuperTeamAddManager
超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:461
@ kNIMNotificationIdTeamKick
普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:381
@ kNIMNotificationIdLocalNetcallCanceled
未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:447
@ kNIMNotificationIdTeamSyncCreate
创建群 {"team_info" : team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:409
@ kNIMNotificationIdTeamApplyPass
高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:389
@ kNIMNotificationIdLocalGetTeamMsgUnreadList
获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}
Definition: nim_msglog_def.h:439
@ kNIMNotificationIdSuperTeamInviteAccept
超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}
Definition: nim_msglog_def.h:469
@ kNIMNotificationIdLocalMute
本地操作对群禁言 {}
Definition: nim_msglog_def.h:435
@ kNIMNotificationIdTeamDismiss
群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:387
@ kNIMNotificationIdTeamInvite
普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:379
@ kNIMNotificationIdSuperTeamInvite
超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:449
@ kNIMNotificationIdLocalApplyTeam
本地操作申请加入群 {}
Definition: nim_msglog_def.h:419
@ kNIMNotificationIdTeamOwnerTransfer
高级群移交群主,{"id":"a1", "leave" : bool,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:391
@ kNIMNotificationIdNetcallReject
拒绝电话,{"calltype":1,"channel":6144978055925334000,"from":"id1","ids":["id1"],"time":139323423424}
Definition: nim_msglog_def.h:405
@ kNIMNotificationIdTeamInviteAccept
高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:397
@ kNIMNotificationIdLocalNetcallNoResponse
无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:445
@ kNIMNotificationIdLocalGetTeamMsgUnreadCount
获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}
Definition: nim_msglog_def.h:437
@ kNIMNotificationIdLocalRejectInvite
本地操作拒绝邀请 {"id":"a1"}
Definition: nim_msglog_def.h:423
@ kNIMNotificationIdLocalNetcallReject
拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:443
@ kNIMNotificationIdSuperTeamKick
超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:451
@ kNIMNotificationIdNetcallMiss
未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:401
@ kNIMNotificationIdTeamSyncUpdateMemberProperty
同步通知:修改群成员属性(可能是自己的或别人的)
Definition: nim_msglog_def.h:413
@ kNIMNotificationIdLocalGetTeamList
本地操作获取群成员信息结束
Definition: nim_msglog_def.h:431
@ kNIMNotificationIdTeamAddManager
增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:393
@ kNIMNotificationIdTeamLeave
退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:383
@ kNIMNotificationIdLocalUpdateOtherNick
本地操作更新他人nickname {}
Definition: nim_msglog_def.h:427
@ kNIMNotificationIdSuperTeamUpdate
超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:455
@ kNIMNotificationIdSuperTeamRemoveManager
超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:463
@ kNIMNotificationIdTeamRemoveManager
删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:395
NIMBuildingMsglogIndexesCompleteReason
构建消息索引表完成原因
Definition: nim_msglog_def.h:31
@ kBuildingMsglogIndexesFullDisk
磁盘空间不足
Definition: nim_msglog_def.h:39
@ kBuildingMsglogIndexesInProgress
当前正在构建中,请勿频繁操作
Definition: nim_msglog_def.h:41
@ kBuildingMsglogIndexesError
构建失败
Definition: nim_msglog_def.h:37
@ kBuildingMsglogIndexesCompleted
构建消息索引表完成
Definition: nim_msglog_def.h:33
@ kBuildingMsglogIndexesCanceled
用户取消
Definition: nim_msglog_def.h:35
void(* nim_msglog_modify_res_cb_func)(int res_code, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:192
static const char * kNIMNotificationKeyDataMute
int
Definition: nim_msglog_def.h:792
void(* nim_msglog_build_msglog_indexes_complete_cb_func)(NIMBuildingMsglogIndexesCompleteReason reason, const char *error_message, const void *user_data)
Definition: nim_msglog_def.h:265
static const char * kNIMTEAMMSGACKREADSUCCESSIDSKEY
string json array 群组消息标记已读成功的msg id list key
Definition: nim_msglog_def.h:844
static const char * kNIMMsglogStatusChangedKeyMsgTimetag
临界的消息的时间戳
Definition: nim_msglog_def.h:275
static const char * kNIMMsglogQueryJsonExtensionKeyReverse
bool,返回的消息历史排序正序(false)/逆序(true),默认为false
Definition: nim_msglog_def.h:635
static const char * kNIMMsglogJsonExtKeyExcludeMsgType
array 绑定的消息要排除的类型,始终排除掉未知类型(1000)消息
Definition: nim_msglog_def.h:655
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:249
static const char * kNIMNotificationIdNetCallDurationKey
int64 通话时长 单位秒
Definition: nim_msglog_def.h:817
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:82
static const char * kNIMDELMSGSelfNotifyKeySessionID
string, 会话 ID
Definition: nim_msglog_def.h:833
static const char * kNIMMsglogStatusChangedKeyStatus
变更后的状态
Definition: nim_msglog_def.h:277
NIMMsglogSearchDirection
Definition: nim_msglog_def.h:659
@ kBackward
以起始时间点为准向后搜索
Definition: nim_msglog_def.h:663
@ kForward
以结束时间点为准向前搜索
Definition: nim_msglog_def.h:661
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:202
static const char * kNIMNotificationKeyDataLeave
bool
Definition: nim_msglog_def.h:790
NIMMsgLogQueryRange
Definition: nim_msglog_def.h:685
@ kNIMMsgLogQueryRangeP2P
指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)
Definition: nim_msglog_def.h:687
@ kNIMMsgLogQueryRangeTeam
指定的群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:689
@ kNIMMsgLogQueryRangeSuperTeam
指定的超大群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:691
@ kNIMMsgLogQueryRangeUnknown
未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)
Definition: nim_msglog_def.h:701
@ kNIMMsgLogQueryRangeAllSuperTeam
所有超大群组
Definition: nim_msglog_def.h:699
@ kNIMMsgLogQueryRangeAll
全部
Definition: nim_msglog_def.h:693
@ kNIMMsgLogQueryRangeAllP2P
所有个人会话
Definition: nim_msglog_def.h:695
@ kNIMMsgLogQueryRangeAllTeam
所有群组
Definition: nim_msglog_def.h:697
static const char * kNIMNotificationIdNetCallIdsKey
StrArray 帐号
Definition: nim_msglog_def.h:813
LogsBackupRemoteState
Definition: nim_msglog_def.h:491
@ LogsBackupRemoteState_End
定义结束
Definition: nim_msglog_def.h:528
@ LogsBackupRemoteState_IMP_SyncFromSrvError
查询备份失败一般是网络错误
Definition: nim_msglog_def.h:504
@ LogsBackupRemoteState_IMP_RAWError
解密/解压出来的源文件格式错误
Definition: nim_msglog_def.h:508
@ LogsBackupRemoteState_IMP_DownloadBackupFailed
下载备份文件出错
Definition: nim_msglog_def.h:506
@ LogsBackupRemoteState_Done
完成
Definition: nim_msglog_def.h:524
@ LogsBackupRemoteState_IMP_LocalDBFailed
导入本地DB出错
Definition: nim_msglog_def.h:512
@ LogsBackupRemoteState_EXP_RAWError
导出到源文件失败
Definition: nim_msglog_def.h:517
@ LogsBackupRemoteState_UserCanceled
已取消
Definition: nim_msglog_def.h:497
@ LogsBackupRemoteState_SDKError
SDK 已出错
Definition: nim_msglog_def.h:499
@ LogsBackupRemoteState_Done_NoLogs
完成,但未导出任何记录
Definition: nim_msglog_def.h:526
@ LogsBackupRemoteState_FinalState_Begin
是否已是最终状态的一个标识,可以判断state是否为终态(state >= LogsBackupRemoteState_FinalState_Begin)
Definition: nim_msglog_def.h:530
@ LogsBackupRemoteState_IMP_NoBackup
没有备份文件
Definition: nim_msglog_def.h:502
@ LogsBackupRemoteState_EXP_LocalDBFailed
打开本地DB失败
Definition: nim_msglog_def.h:515
@ LogsBackupRemoteState_EXP_SyncToSrvError
同步到服务器出错一般是网络错误
Definition: nim_msglog_def.h:521
@ LogsBackupRemoteState_EXP_UploadBackupFailed
上传备份文件出错
Definition: nim_msglog_def.h:519
@ LogsBackupRemoteState_Begin
定义开始
Definition: nim_msglog_def.h:493
@ LogsBackupRemoteState_IMP_ParseRAWError
解析源文件格式错误
Definition: nim_msglog_def.h:510
@ LogsBackupRemoteState_UnDef
未定义
Definition: nim_msglog_def.h:495
static const char * kNIMNotificationKeyDataIds
string array
Definition: nim_msglog_def.h:784
static const char * kNIMMsglogQueryKeyCount
int, 查询得到的数量
Definition: nim_msglog_def.h:289
static const char * kNIMMsglogStatusChangedKeyTalkID
会话ID
Definition: nim_msglog_def.h:273
static const char * kNIMMsglogJsonExtKeyComposeLastMsg
bool 插入新消息若需要更新会话数据,指定是否需要绑定历史消息中的最后一条消息。true:需要,false:不需要
Definition: nim_msglog_def.h:653
NIMFullTextSearchRule
全文检索排序规则
Definition: nim_msglog_def.h:534
@ kNIMFullTextSearchOrderByDesc
Definition: nim_msglog_def.h:534
@ kNIMFullTextSearchNoGroupBySession
Definition: nim_msglog_def.h:534
@ kNIMFullTextSearchOrderByAsc
Definition: nim_msglog_def.h:534
static const char * kNIMMsglogQueryKeySource
NIMMsglogQuerySource, 查询结果来源
Definition: nim_msglog_def.h:291
static const char * kNIMMsglogJsonExtKeyPhysicalDelete
Definition: nim_msglog_def.h:298
static const char * kNIMNotificationKeyData
json object 包含以下5种可能的数据结构
Definition: nim_msglog_def.h:782
void(* nim_msglog_delete_history_online_res_cb_func)(int res_code, const char *accid, const void *user_data)
Definition: nim_msglog_def.h:51
static const char * kNIMTEAMMSGACKREADSIGNOREDIDSKEY
string json array 群组消息标记已读忽略的msg id list key(消息不需要标记,或者已经标记过)
Definition: nim_msglog_def.h:848
NIMMsglogSearchSegmentEngine
Definition: nim_msglog_def.h:667
@ kSegmentEngineJiebaCutAll
Jieba 分词,使用全模式
Definition: nim_msglog_def.h:677
@ kSegmentEngineJiebaCutHMM
Jieba 分词,使用 HMM 模型
Definition: nim_msglog_def.h:681
@ kSegmentEngineJiebaCutForSearch
Jieba 分词,搜索引擎模式
Definition: nim_msglog_def.h:679
@ kSegmentEngineDefault
不使用分词逻辑
Definition: nim_msglog_def.h:669
@ kSegmentEngineJiebaCutWithHMM
Jieba 分词,使用 HMM 模型
Definition: nim_msglog_def.h:673
@ kSegmentEngineJiebaCutWithoutHMM
Jieba 分词,不使用 HMM 模型
Definition: nim_msglog_def.h:675
@ kSegmentEngineSimple
单字分词逻辑,默认
Definition: nim_msglog_def.h:671
static const char * kNIMNotificationKeyDataInvalidIds
string array
Definition: nim_msglog_def.h:786
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:161
static const char * kNIMMsglogQueryKeyContent
Definition: nim_msglog_def.h:292
static const char * kNIMNotificationIdNetCallTimeKey
int64 时间 单位毫秒
Definition: nim_msglog_def.h:811
NIMSessionType
Definition: nim_session_def.h:16
@ kNIMSessionTypeSuperTeam
超大群组
Definition: nim_session_def.h:22
@ kNIMSessionTypeP2P
个人,即点对点
Definition: nim_session_def.h:18
@ kNIMSessionTypeTeam
群组
Definition: nim_session_def.h:20
NIM SDK 及 NIM ChatRoom SDK 公用头文件
unsigned char bool
Definition: stdbool.h:25
单向删除某条消息参数
Definition: nim_msglog_def.h:852
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:860
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:854
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:864
删除与某一会话的历史记录推送数据定义
Definition: nim_msglog_def.h:17
int64_t time
int64_t 删除操作的时间戳
Definition: nim_msglog_def.h:23
enum NIMSessionType to_type
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:19
导出消息记录到云端参数定义
Definition: nim_msglog_def.h:547
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:589
char * encrypt_key_
加密秘钥
Definition: nim_msglog_def.h:562
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:592
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:626
云端查询某条消息参数一般用在thread聊天场景中
Definition: nim_msglog_def.h:870
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:872
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:878
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:882
根据关键字村云端查询消息记录的参数定义
Definition: nim_msglog_def.h:759
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:767
int limit
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:763
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:765
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:769
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:761
本地全文检索参数
Definition: nim_msglog_def.h:733
const char * account_id_
要检索的会话 ID 可以为空,留空是搜索全部匹配内容
Definition: nim_msglog_def.h:737
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:747
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h),当 account ID 为空时忽略该参数
Definition: nim_msglog_def.h:739
bool enable_pinyin_
bool 是否使用拼音检索能力,默认为 true
Definition: nim_msglog_def.h:755
int limit_count_
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:745
const char * keyword_
检索关键字
Definition: nim_msglog_def.h:735
enum NIMMessageType * msg_type_list_
list 要获取的消息类型
Definition: nim_msglog_def.h:741
NIMMsglogSearchSegmentEngine segment_engine_
全文检索对原文的分词方式,
Definition: nim_msglog_def.h:753
NIMMsglogSearchDirection direction_
查询方向,
Definition: nim_msglog_def.h:751
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:749
int type_list_length_
int type list 长度
Definition: nim_msglog_def.h:743
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:705
int limit_count_
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:709
int64_t end_msg_id_
int64_t 结束查询的最后一条消息的server_msg_id(不包含在查询结果中)
Definition: nim_msglog_def.h:715
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:713
bool replace_local_message_
bool 查询结果回来后,如果 need_save_to_local_ 为 true 是否要替换本地已经存在的消息
Definition: nim_msglog_def.h:721
enum NIMMessageType * msg_type_list_
list 要获取或排除掉的消息类型 由 is_exclusion_type_ 参数决定
Definition: nim_msglog_def.h:725
bool need_save_to_local_
bool 将在线查询结果保存到本地,false: 不保存
Definition: nim_msglog_def.h:719
int type_list_length_
int type list 长度
Definition: nim_msglog_def.h:727
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:717
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:711
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:707
bool is_exclusion_type_
bool true : 获取除msg_type_list_中指定的所有类型消息 ,false :只获取 msg_type_list_ 中指定的类型的消息
Definition: nim_msglog_def.h:729
bool auto_download_attachment_
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:723
云端查询thread聊天历史参数
Definition: nim_msglog_def.h:886
int32_t limit
int32_t 查询条数限制 缺省100
Definition: nim_msglog_def.h:894
int64_t to_time
int64_t 结束时间 缺省0
Definition: nim_msglog_def.h:890
int32_t reverse
int64_t 排序 缺省0 false
Definition: nim_msglog_def.h:896
int64_t from_time
int64_t 起始时间 缺省0
Definition: nim_msglog_def.h:888
int64_t exclude_msg_id
int64_t 截至消息的服务端id,不包含在查询结果中 缺省0
Definition: nim_msglog_def.h:892