NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_msglog_def.h
浏览该文件的文档.
1
7#ifndef NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
8#define NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
9
10#include "nim_session_def.h"
11#include "public_defines.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
17typedef struct {
21 char id[128];
23 int64_t time;
25 char ext[1024];
27
42};
43
51typedef void (*nim_msglog_delete_history_online_res_cb_func)(int res_code, const char* accid, const void* user_data);
52
68 const char* accid,
69 enum NIMSessionType type,
70 uint64_t time,
71 const char* ext,
72 const void* user_data);
73
83 int node_count,
84 const void* user_data);
85
92typedef void (*nim_msglog_delete_message_self_res_cb_func)(int res_code, const void* user_data);
93
100typedef void (*nim_msglog_delete_message_self_notify_cb_func)(const char* infos, const void* user_data);
101
112typedef void (
113 *nim_msglog_query_single_cb_func)(int res_code, const char* msg_id, const char* result, const char* json_extension, const void* user_data);
114
136typedef void (*nim_msglog_query_cb_func)(int res_code,
137 const char* id,
138 enum NIMSessionType type,
139 const char* result,
140 const char* json_extension,
141 const void* user_data);
142
152typedef void (
153 *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);
154
163typedef void (*nim_msglog_res_cb_func)(int res_code, const char* msg_id, const char* json_extension, const void* user_data);
164
175typedef void (*nim_msglog_res_ex_cb_func)(int res_code, const char* uid, enum NIMSessionType type, const char* json_extension, const void* user_data);
176
184typedef void (*nim_msglog_modify_res_cb_func)(int res_code, const char* json_extension, const void* user_data);
185
194typedef void (*nim_msglog_import_prg_cb_func)(int64_t imported_count, int64_t total_count, const char* json_extension, const void* user_data);
195
204typedef void (*nim_msglog_status_changed_cb_func)(int res_code, const char* result, const char* json_extension, const void* user_data);
205
220 const char* client_id,
221 bool is_root,
222 int reply_count,
223 const void* user_data);
224
242 const char* root_msg,
243 int total,
244 uint64_t timestamp,
245 const char* msgs,
246 const void* user_data);
247
253typedef void (*nim_msglog_is_msglog_index_built_cb_func)(bool is_built, const void* user_data);
254
255typedef void (*nim_msglog_build_msglog_indexes_progress_cb_func)(uint32_t total, uint32_t built_count, const void* user_data);
256
258 const char* error_message,
259 const void* user_data);
260
265static const char* kNIMMsglogStatusChangedKeyTalkID = "talk_id";
267static const char* kNIMMsglogStatusChangedKeyMsgTimetag = "msg_timetag";
269static const char* kNIMMsglogStatusChangedKeyStatus = "status"; // 消息状态变更通知结果 Json Keys
271
281static const char* kNIMMsglogQueryKeyCount = "count";
283static const char* kNIMMsglogQueryKeySource = "source";
284static const char* kNIMMsglogQueryKeyContent =
286 "content";
287static const char* kNIMMsglogReliable = "reliable"; // 查询消息历史结果Json Keys
289
296};
297
324};
325
338};
339
364};
365
396
397 // 服务器在线同步协议返回的结果
404
405 // 本地发起的操作通知APP上层
430
431 // Netcall本地操作通知
461
466 // 这二个标志适用于所有
471};
472
490 // 导入状态
503 // 导出状态
512
521};
522
525
527typedef struct {
533 char* (*ExportBackupToRemotePackageCallback)(const char* const file_path, void* user_data);
540 char* (*ExportBackupToRemoteEncryptCallback)(const char* const file_path, const char* const encrypt_key, void* user_data);
549 void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
556 void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
562 bool (*ExportBackupToRemoteLogFiter)(const char* const msg, void* user_data);
567 void (*NewPathRelease)(char** data_ptr);
572typedef struct {
578 char* (*ImportBackupFromRemoteUnPackageCallback)(const char* const file_path, void* user_data);
585 char* (*ImportBackupFromRemoteDecryptCallback)(const char* const file_path, const char* const encrypt_key, void* user_data);
592 void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
599 void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
604 void (*NewPathRelease)(char**);
608
613static const char* kNIMMsglogQueryJsonExtensionKeyDirection = "direction";
615static const char* kNIMMsglogQueryJsonExtensionKeyReverse = "reverse";
617static const char* kNIMMsglogQueryJsonExtensionKeyEndTime = "endtime"; // 接口nim_msglog_query_msg_async扩展参数json key定义
619
624static const char* kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment = "need_auto_download_attachment";
626static const char* kNIMMsglogJsonExtKeyQueryMsgTypeList = "query_msg_type_list"; // 接口nim_msglog_query_msg_online_async扩展参数json_extension key定义
628
633static const char* kNIMMsglogJsonExtKeyComposeLastMsg = "compose_last_msg";
635static const char* kNIMMsglogJsonExtKeyExcludeMsgType = "exclude_msg_type"; // 接口 nim_msglog_insert_msglog_async 扩展参数 json_extension key 定义
637
644};
645
663
682};
683
685typedef struct {
691 int64_t from_time_;
693 int64_t end_time_;
695 int64_t end_msg_id_;
709
711typedef struct {
713 const char* keyword_;
715 const char* account_id_;
725 int64_t from_time_;
727 int64_t end_time_;
735
737typedef struct {
741 int limit;
743 int64_t from_time_;
745 int64_t end_time_;
749
758static const char* kNIMNotificationKeyId = "id";
760static const char* kNIMNotificationKeyData = "data";
762static const char* kNIMNotificationKeyDataIds = "ids";
764static const char* kNIMNotificationKeyDataInvalidIds = "invalid_ids";
766static const char* kNIMNotificationKeyDataId = "id";
768static const char* kNIMNotificationKeyDataLeave = "leave";
770static const char* kNIMNotificationKeyDataMute = "mute";
772static const char* kNIMNotificationKeyTeamInfo = "team_info";
774static const char* kNIMNotificationKeyTeamMember = "team_member";
776static const char* kNIMNotificationKeyUserNameCards = "name_cards";
778static const char* kNIMNotificationKeyAttach = "attach"; // 群组通知 Json Keys
780
787static const char* kNIMNotificationIdNetCallTypeKey = "calltype";
789static const char* kNIMNotificationIdNetCallTimeKey = "time";
791static const char* kNIMNotificationIdNetCallIdsKey = "ids";
793static const char* kNIMNotificationIdNetCallChannelKey = "channel";
795static const char* kNIMNotificationIdNetCallDurationKey = "duration";
797static const char* kNIMNotificationIdNetCallFromKey = "from";
799static const char* kNIMNotificationIdNetCallEXTKey = "ext"; // kNIMNotificationIdNetcallBill
801 // kNIMNotificationIdNetcallMiss
802 // kNIMNotificationIdNetcallReject
803 // kNIMNotificationIdLocalNetcallReject
804 // kNIMNotificationIdLocalNetcallNoResponse
805 // Data Keys
806
811static const char* kNIMDELMSGSelfNotifyKeySessionID = "session_id";
813static const char* kNIMDELMSGSelfNotifyKeyMsgClientID = "client_id";
815static const char* kNIMDELMSGSelfNotifyKeyEXT = "ext"; // 单向删除某条消息服务端推送 Json Keys
817
822static const char* kNIMTEAMMSGACKREADSUCCESSIDSKEY = "success_ids";
824static const char* kNIMTEAMMSGACKREADFAILUREIDSKEY = "failure_ids";
826static const char* kNIMTEAMMSGACKREADSIGNOREDIDSKEY = "ignored_ids"; // 单向删除某条消息参数 Json Keys
828
830typedef struct {
834 char from_account[128];
836 char to_account[128];
838 int64_t server_id;
840 char client_id[128];
842 int64_t time;
844 char ext[1024];
846
848typedef struct {
852 char from_account[128];
854 char to_account[128];
856 int64_t server_id;
858 char client_id[128];
860 int64_t time;
862
864typedef struct {
866 int64_t from_time;
868 int64_t to_time;
872 int32_t limit;
874 int32_t reverse;
876
877#ifdef __cplusplus
878};
879#endif //__cplusplus
880#endif // NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
static const char * kNIMMsglogJsonExtKeyQueryMsgTypeList
array 要查询的消息类型
Definition: nim_msglog_def.h:626
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:204
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:175
static const char * kNIMNotificationIdNetCallChannelKey
int64 通道id
Definition: nim_msglog_def.h:793
void(* nim_msglog_is_msglog_index_built_cb_func)(bool is_built, const void *user_data)
Definition: nim_msglog_def.h:253
static const char * kNIMNotificationKeyTeamInfo
string, team_info 群组信息 Json Keys
Definition: nim_msglog_def.h:772
static const char * kNIMNotificationKeyAttach
string array, 应用自定义扩展字段
Definition: nim_msglog_def.h:778
static const char * kNIMMsglogReliable
Definition: nim_msglog_def.h:287
static const char * kNIMTEAMMSGACKREADFAILUREIDSKEY
string json array 群组消息标记已读失败的msg id list key
Definition: nim_msglog_def.h:824
static const char * kNIMNotificationIdNetCallEXTKey
string 会发起时传入的 custominfo参数
Definition: nim_msglog_def.h:799
LogsBackupRemoteOperate
Definition: nim_msglog_def.h:474
@ LogsBackupRemoteOperate_Export
导出
Definition: nim_msglog_def.h:476
@ LogsBackupRemoteOperate_Import
导入
Definition: nim_msglog_def.h:478
static const char * kNIMNotificationIdNetCallTypeKey
int 通话类型对应NIMVideoChatMode
Definition: nim_msglog_def.h:787
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:136
static const char * kNIMMsglogQueryJsonExtensionKeyDirection
NIMMsglogSearchDirection,默认为kForward
Definition: nim_msglog_def.h:613
void(* nim_msglog_delete_message_self_notify_cb_func)(const char *infos, const void *user_data)
Definition: nim_msglog_def.h:100
NIMMsgLogStatus
Definition: nim_msglog_def.h:341
@ kNIMMsgLogStatusSent
已发送
Definition: nim_msglog_def.h:355
@ kNIMMsgLogStatusSendCancel
发送取消
Definition: nim_msglog_def.h:361
@ kNIMMsgLogStatusRead
收到消息,已读
Definition: nim_msglog_def.h:347
@ kNIMMsgLogStatusUnread
收到消息,未读
Definition: nim_msglog_def.h:345
@ kNIMMsgLogStatusReceipt
对方已读发送的内容
Definition: nim_msglog_def.h:357
@ kNIMMsgLogStatusDeleted
已删
Definition: nim_msglog_def.h:349
@ kNIMMsgLogStatusSending
发送中
Definition: nim_msglog_def.h:351
@ kNIMMsgLogStatusNone
默认,不能当查询条件,意义太多
Definition: nim_msglog_def.h:343
@ kNIMMsgLogStatusSendFailed
发送失败
Definition: nim_msglog_def.h:353
@ kNIMMsgLogStatusDraft
草稿
Definition: nim_msglog_def.h:359
@ kNIMMsgLogStatusRefused
被对方拒绝,比如被对方加入黑名单等等
Definition: nim_msglog_def.h:363
NIMMsglogQuerySource
Definition: nim_msglog_def.h:291
@ kNIMMsglogQuerySourceLocal
本地查询
Definition: nim_msglog_def.h:293
@ kNIMMsglogQuerySourceServer
云端查询
Definition: nim_msglog_def.h:295
static const char * kNIMDELMSGSelfNotifyKeyEXT
string 用户自定义数据
Definition: nim_msglog_def.h:815
void(* nim_msglog_delete_message_self_res_cb_func)(int res_code, const void *user_data)
Definition: nim_msglog_def.h:92
static const char * kNIMNotificationIdNetCallFromKey
string 发起者帐号
Definition: nim_msglog_def.h:797
NIMMessageType
Definition: nim_msglog_def.h:299
@ kNIMMessageTypeCustom
自定义消息
Definition: nim_msglog_def.h:321
@ kNIMMessageTypeAudio
声音类型消息
Definition: nim_msglog_def.h:305
@ kNIMMessageTypeUnknown
未知类型消息,本地使用,发送时勿使用,作为默认值
Definition: nim_msglog_def.h:323
@ kNIMMessageTypeVideo
视频类型消息
Definition: nim_msglog_def.h:307
@ kNIMMessageTypeTips
提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段
Definition: nim_msglog_def.h:315
@ kNIMMessageTypeG2NetCall
G2话单消息
Definition: nim_msglog_def.h:319
@ kNIMMessageTypeImage
图片类型消息
Definition: nim_msglog_def.h:303
@ kNIMMessageTypeFile
文件类型消息
Definition: nim_msglog_def.h:313
@ kNIMMessageTypeRobot
波特机器人消息
Definition: nim_msglog_def.h:317
@ kNIMMessageTypeText
文本类型消息
Definition: nim_msglog_def.h:301
@ kNIMMessageTypeLocation
位置类型消息
Definition: nim_msglog_def.h:309
@ kNIMMessageTypeNotification
系统类型通知(包括入群出群通知等) NIMNotificationId
Definition: nim_msglog_def.h:311
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:219
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:617
static const char * kNIMDELMSGSelfNotifyKeyMsgClientID
string 消息ID
Definition: nim_msglog_def.h:813
static const char * kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:624
static const char * kNIMNotificationKeyDataId
string
Definition: nim_msglog_def.h:766
static const char * kNIMNotificationKeyTeamMember
string, team_member_property 群组成员信息 Json Keys
Definition: nim_msglog_def.h:774
NIMMsgLogSubStatus
Definition: nim_msglog_def.h:463
@ kNIMMsgLogSubStatusNotPlaying
未播放
Definition: nim_msglog_def.h:468
@ kNIMMsgLogSubStatusNone
默认状态
Definition: nim_msglog_def.h:465
@ kNIMMsgLogSubStatusPlayed
已播放
Definition: nim_msglog_def.h:470
static const char * kNIMNotificationKeyUserNameCards
json string array, 操作者和被操作者双方的 用户名片 Json Keys
Definition: nim_msglog_def.h:776
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:113
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:163
static const char * kNIMNotificationKeyId
int, 见NIMNotificationId
Definition: nim_msglog_def.h:758
NIMMessageFeature
Definition: nim_msglog_def.h:327
@ kNIMMessageFeatureRoamMsg
漫游消息
Definition: nim_msglog_def.h:333
@ kNIMMessageFeatureCustomizedMsg
透传消息
Definition: nim_msglog_def.h:337
@ kNIMMessageFeatureDefault
默认
Definition: nim_msglog_def.h:329
@ kNIMMessageFeatureSyncMsg
同步消息
Definition: nim_msglog_def.h:335
@ kNIMMessageFeatureLeaveMsg
离线消息
Definition: nim_msglog_def.h:331
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:255
NIMNotificationId
Definition: nim_msglog_def.h:367
@ kNIMNotificationIdLocalUpdateMemberProperty
本地操作更新群成员属性 {"team_member" : team_member_info}
Definition: nim_msglog_def.h:415
@ kNIMNotificationIdNetcallBill
话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}
Definition: nim_msglog_def.h:393
@ kNIMNotificationIdTeamUpdate
群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:375
@ kNIMNotificationIdLocalCreateTeam
本地操作创建群 {"ids" : ["a1", "a2"]}
Definition: nim_msglog_def.h:407
@ kNIMNotificationIdSuperTeamLeave
退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:443
@ kNIMNotificationIdTeamMemberChanged
群成员变更{"team_member" : team_member_info}
Definition: nim_msglog_def.h:401
@ kNIMNotificationIdLocalMuteMember
本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:423
@ kNIMNotificationIdSuperTeamMuteMember
超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:455
@ kNIMNotificationIdLocalRejectApply
本地操作拒绝申请 {"id":"a1"}
Definition: nim_msglog_def.h:411
@ kNIMNotificationIdSuperTeamApplyPass
超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:457
@ kNIMNotificationIdSuperTeamOwnerTransfer
超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:449
@ kNIMNotificationIdLocalGetTeamInfo
本地操作获取群信息 {"team_info":team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:419
@ kNIMNotificationIdTeamMuteMember
禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1",...
Definition: nim_msglog_def.h:389
@ kNIMNotificationIdSuperTeamDismiss
超大群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:447
@ kNIMNotificationIdSuperTeamAddManager
超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:451
@ kNIMNotificationIdTeamKick
普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:371
@ kNIMNotificationIdLocalNetcallCanceled
未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:437
@ kNIMNotificationIdTeamSyncCreate
创建群 {"team_info" : team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:399
@ kNIMNotificationIdTeamApplyPass
高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:379
@ kNIMNotificationIdLocalGetTeamMsgUnreadList
获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}
Definition: nim_msglog_def.h:429
@ kNIMNotificationIdSuperTeamInviteAccept
超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}
Definition: nim_msglog_def.h:459
@ kNIMNotificationIdLocalMute
本地操作对群禁言 {}
Definition: nim_msglog_def.h:425
@ kNIMNotificationIdTeamDismiss
群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:377
@ kNIMNotificationIdTeamInvite
普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:369
@ kNIMNotificationIdSuperTeamInvite
超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:439
@ kNIMNotificationIdLocalApplyTeam
本地操作申请加入群 {}
Definition: nim_msglog_def.h:409
@ kNIMNotificationIdTeamOwnerTransfer
高级群移交群主,{"id":"a1", "leave" : bool,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:381
@ kNIMNotificationIdNetcallReject
拒绝电话,{"calltype":1,"channel":6144978055925334000,"from":"id1","ids":["id1"],"time":139323423424}
Definition: nim_msglog_def.h:395
@ kNIMNotificationIdTeamInviteAccept
高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:387
@ kNIMNotificationIdLocalNetcallNoResponse
无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:435
@ kNIMNotificationIdLocalGetTeamMsgUnreadCount
获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}
Definition: nim_msglog_def.h:427
@ kNIMNotificationIdLocalRejectInvite
本地操作拒绝邀请 {"id":"a1"}
Definition: nim_msglog_def.h:413
@ kNIMNotificationIdLocalNetcallReject
拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:433
@ kNIMNotificationIdSuperTeamKick
超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:441
@ kNIMNotificationIdNetcallMiss
未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:391
@ kNIMNotificationIdTeamSyncUpdateMemberProperty
同步通知:修改群成员属性(可能是自己的或别人的)
Definition: nim_msglog_def.h:403
@ kNIMNotificationIdLocalGetTeamList
本地操作获取群成员信息结束
Definition: nim_msglog_def.h:421
@ kNIMNotificationIdTeamAddManager
增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:383
@ kNIMNotificationIdTeamLeave
退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:373
@ kNIMNotificationIdLocalUpdateOtherNick
本地操作更新他人nickname {}
Definition: nim_msglog_def.h:417
@ kNIMNotificationIdSuperTeamUpdate
超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:445
@ kNIMNotificationIdSuperTeamRemoveManager
超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:453
@ kNIMNotificationIdTeamRemoveManager
删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:385
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:184
static const char * kNIMNotificationKeyDataMute
int
Definition: nim_msglog_def.h:770
void(* nim_msglog_build_msglog_indexes_complete_cb_func)(NIMBuildingMsglogIndexesCompleteReason reason, const char *error_message, const void *user_data)
Definition: nim_msglog_def.h:257
static const char * kNIMTEAMMSGACKREADSUCCESSIDSKEY
string json array 群组消息标记已读成功的msg id list key
Definition: nim_msglog_def.h:822
static const char * kNIMMsglogStatusChangedKeyMsgTimetag
临界的消息的时间戳
Definition: nim_msglog_def.h:267
static const char * kNIMMsglogQueryJsonExtensionKeyReverse
bool,返回的消息历史排序正序(false)/逆序(true),默认为false
Definition: nim_msglog_def.h:615
static const char * kNIMMsglogJsonExtKeyExcludeMsgType
array 绑定的消息要排除的类型,始终排除掉未知类型(1000)消息
Definition: nim_msglog_def.h:635
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:241
static const char * kNIMNotificationIdNetCallDurationKey
int64 通话时长 单位秒
Definition: nim_msglog_def.h:795
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:811
static const char * kNIMMsglogStatusChangedKeyStatus
变更后的状态
Definition: nim_msglog_def.h:269
NIMMsglogSearchDirection
Definition: nim_msglog_def.h:639
@ kBackward
以起始时间点为准向后搜索
Definition: nim_msglog_def.h:643
@ kForward
以结束时间点为准向前搜索
Definition: nim_msglog_def.h:641
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:194
static const char * kNIMNotificationKeyDataLeave
bool
Definition: nim_msglog_def.h:768
NIMMsgLogQueryRange
Definition: nim_msglog_def.h:665
@ kNIMMsgLogQueryRangeP2P
指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)
Definition: nim_msglog_def.h:667
@ kNIMMsgLogQueryRangeTeam
指定的群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:669
@ kNIMMsgLogQueryRangeSuperTeam
指定的超大群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:671
@ kNIMMsgLogQueryRangeUnknown
未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)
Definition: nim_msglog_def.h:681
@ kNIMMsgLogQueryRangeAllSuperTeam
所有超大群组
Definition: nim_msglog_def.h:679
@ kNIMMsgLogQueryRangeAll
全部
Definition: nim_msglog_def.h:673
@ kNIMMsgLogQueryRangeAllP2P
所有个人会话
Definition: nim_msglog_def.h:675
@ kNIMMsgLogQueryRangeAllTeam
所有群组
Definition: nim_msglog_def.h:677
static const char * kNIMNotificationIdNetCallIdsKey
StrArray 帐号
Definition: nim_msglog_def.h:791
LogsBackupRemoteState
Definition: nim_msglog_def.h:481
@ LogsBackupRemoteState_End
定义结束
Definition: nim_msglog_def.h:518
@ LogsBackupRemoteState_IMP_SyncFromSrvError
查询备份失败一般是网络错误
Definition: nim_msglog_def.h:494
@ LogsBackupRemoteState_IMP_RAWError
解密/解压出来的源文件格式错误
Definition: nim_msglog_def.h:498
@ LogsBackupRemoteState_IMP_DownloadBackupFailed
下载备份文件出错
Definition: nim_msglog_def.h:496
@ LogsBackupRemoteState_Done
完成
Definition: nim_msglog_def.h:514
@ LogsBackupRemoteState_IMP_LocalDBFailed
导入本地DB出错
Definition: nim_msglog_def.h:502
@ LogsBackupRemoteState_EXP_RAWError
导出到源文件失败
Definition: nim_msglog_def.h:507
@ LogsBackupRemoteState_UserCanceled
已取消
Definition: nim_msglog_def.h:487
@ LogsBackupRemoteState_SDKError
SDK 已出错
Definition: nim_msglog_def.h:489
@ LogsBackupRemoteState_Done_NoLogs
完成,但未导出任何记录
Definition: nim_msglog_def.h:516
@ LogsBackupRemoteState_FinalState_Begin
是否已是最终状态的一个标识,可以判断state是否为终态(state >= LogsBackupRemoteState_FinalState_Begin)
Definition: nim_msglog_def.h:520
@ LogsBackupRemoteState_IMP_NoBackup
没有备份文件
Definition: nim_msglog_def.h:492
@ LogsBackupRemoteState_EXP_LocalDBFailed
打开本地DB失败
Definition: nim_msglog_def.h:505
@ LogsBackupRemoteState_EXP_SyncToSrvError
同步到服务器出错一般是网络错误
Definition: nim_msglog_def.h:511
@ LogsBackupRemoteState_EXP_UploadBackupFailed
上传备份文件出错
Definition: nim_msglog_def.h:509
@ LogsBackupRemoteState_Begin
定义开始
Definition: nim_msglog_def.h:483
@ LogsBackupRemoteState_IMP_ParseRAWError
解析源文件格式错误
Definition: nim_msglog_def.h:500
@ LogsBackupRemoteState_UnDef
未定义
Definition: nim_msglog_def.h:485
static const char * kNIMNotificationKeyDataIds
string array
Definition: nim_msglog_def.h:762
static const char * kNIMMsglogQueryKeyCount
int, 查询得到的数量
Definition: nim_msglog_def.h:281
static const char * kNIMMsglogStatusChangedKeyTalkID
会话ID
Definition: nim_msglog_def.h:265
static const char * kNIMMsglogJsonExtKeyComposeLastMsg
bool 插入新消息若需要更新会话数据,指定是否需要绑定历史消息中的最后一条消息。true:需要,false:不需要
Definition: nim_msglog_def.h:633
NIMFullTextSearchRule
全文检索排序规则
Definition: nim_msglog_def.h:524
@ kNIMFullTextSearchOrderByDesc
Definition: nim_msglog_def.h:524
@ kNIMFullTextSearchNoGroupBySession
Definition: nim_msglog_def.h:524
@ kNIMFullTextSearchOrderByAsc
Definition: nim_msglog_def.h:524
static const char * kNIMMsglogQueryKeySource
NIMMsglogQuerySource, 查询结果来源
Definition: nim_msglog_def.h:283
static const char * kNIMNotificationKeyData
json object 包含以下5种可能的数据结构
Definition: nim_msglog_def.h:760
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:826
NIMMsglogSearchSegmentEngine
Definition: nim_msglog_def.h:647
@ kSegmentEngineJiebaCutAll
Jieba 分词,使用全模式
Definition: nim_msglog_def.h:657
@ kSegmentEngineJiebaCutHMM
Jieba 分词,使用 HMM 模型
Definition: nim_msglog_def.h:661
@ kSegmentEngineJiebaCutForSearch
Jieba 分词,搜索引擎模式
Definition: nim_msglog_def.h:659
@ kSegmentEngineDefault
不使用分词逻辑
Definition: nim_msglog_def.h:649
@ kSegmentEngineJiebaCutWithHMM
Jieba 分词,使用 HMM 模型
Definition: nim_msglog_def.h:653
@ kSegmentEngineJiebaCutWithoutHMM
Jieba 分词,不使用 HMM 模型
Definition: nim_msglog_def.h:655
@ kSegmentEngineSimple
单字分词逻辑,默认
Definition: nim_msglog_def.h:651
static const char * kNIMNotificationKeyDataInvalidIds
string array
Definition: nim_msglog_def.h:764
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:153
static const char * kNIMMsglogQueryKeyContent
Definition: nim_msglog_def.h:284
static const char * kNIMNotificationIdNetCallTimeKey
int64 时间 单位毫秒
Definition: nim_msglog_def.h:789
最近会话列表 接口相关的常量函数等定义头文件
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:830
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:838
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:832
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:842
删除与某一会话的历史记录推送数据定义
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:527
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:569
char * encrypt_key_
加密秘钥
Definition: nim_msglog_def.h:542
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:572
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:606
云端查询某条消息参数一般用在thread聊天场景中
Definition: nim_msglog_def.h:848
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:850
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:856
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:860
根据关键字村云端查询消息记录的参数定义
Definition: nim_msglog_def.h:737
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:745
int limit
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:741
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:743
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:747
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:739
本地全文检索参数
Definition: nim_msglog_def.h:711
const char * account_id_
要检索的会话 ID 可以为空,留空是搜索全部匹配内容
Definition: nim_msglog_def.h:715
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:725
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h),当 account ID 为空时忽略该参数
Definition: nim_msglog_def.h:717
bool enable_pinyin_
bool 是否使用拼音检索能力,默认为 true
Definition: nim_msglog_def.h:733
int limit_count_
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:723
const char * keyword_
检索关键字
Definition: nim_msglog_def.h:713
enum NIMMessageType * msg_type_list_
list 要获取的消息类型
Definition: nim_msglog_def.h:719
NIMMsglogSearchSegmentEngine segment_engine_
全文检索对原文的分词方式,
Definition: nim_msglog_def.h:731
NIMMsglogSearchDirection direction_
查询方向,
Definition: nim_msglog_def.h:729
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:727
int type_list_length_
int type list 长度
Definition: nim_msglog_def.h:721
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:685
int limit_count_
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:689
int64_t end_msg_id_
int64_t 结束查询的最后一条消息的server_msg_id(不包含在查询结果中)
Definition: nim_msglog_def.h:695
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:693
enum NIMMessageType * msg_type_list_
list 要获取或排除掉的消息类型 由 is_exclusion_type_ 参数决定
Definition: nim_msglog_def.h:703
bool need_save_to_local_
bool 将在线查询结果保存到本地,false: 不保存
Definition: nim_msglog_def.h:699
int type_list_length_
int type list 长度
Definition: nim_msglog_def.h:705
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:697
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:691
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:687
bool is_exclusion_type_
bool true : 获取除msg_type_list_中指定的所有类型消息 ,false :只获取 msg_type_list_ 中指定的类型的消息
Definition: nim_msglog_def.h:707
bool auto_download_attachment_
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:701
云端查询thread聊天历史参数
Definition: nim_msglog_def.h:864
int32_t limit
int32_t 查询条数限制 缺省100
Definition: nim_msglog_def.h:872
int64_t to_time
int64_t 结束时间 缺省0
Definition: nim_msglog_def.h:868
int32_t reverse
int64_t 排序 缺省0 false
Definition: nim_msglog_def.h:874
int64_t from_time
int64_t 起始时间 缺省0
Definition: nim_msglog_def.h:866
int64_t exclude_msg_id
int64_t 截至消息的服务端id,不包含在查询结果中 缺省0
Definition: nim_msglog_def.h:870