NIM SDK API  8.5.0
nim_msglog_def.h
Go to the documentation of this file.
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
14 extern "C" {
15 #endif
16 
17 typedef struct {
18  enum NIMSessionType to_type;
19  char id[128];
20  int64_t time;
21  char ext[1024];
23 
31 typedef void (*nim_msglog_delete_history_online_res_cb_func)(int res_code, const char* accid, const void* user_data);
32 
48  const char* accid,
49  enum NIMSessionType type,
50  uint64_t time,
51  const char* ext,
52  const void* user_data);
53 
63  int node_count,
64  const void* user_data);
65 
72 typedef void (*nim_msglog_delete_message_self_res_cb_func)(int res_code, const void* user_data);
73 
80 typedef void (*nim_msglog_delete_message_self_notify_cb_func)(const char* infos, const void* user_data);
81 
92 typedef void (
93  *nim_msglog_query_single_cb_func)(int res_code, const char* msg_id, const char* result, const char* json_extension, const void* user_data);
94 
116 typedef void (*nim_msglog_query_cb_func)(int res_code,
117  const char* id,
118  enum NIMSessionType type,
119  const char* result,
120  const char* json_extension,
121  const void* user_data);
122 
132 typedef void (
133  *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);
134 
143 typedef void (*nim_msglog_res_cb_func)(int res_code, const char* msg_id, const char* json_extension, const void* user_data);
144 
155 typedef void (*nim_msglog_res_ex_cb_func)(int res_code, const char* uid, enum NIMSessionType type, const char* json_extension, const void* user_data);
156 
164 typedef void (*nim_msglog_modify_res_cb_func)(int res_code, const char* json_extension, const void* user_data);
165 
174 typedef void (*nim_msglog_import_prg_cb_func)(int64_t imported_count, int64_t total_count, const char* json_extension, const void* user_data);
175 
184 typedef void (*nim_msglog_status_changed_cb_func)(int res_code, const char* result, const char* json_extension, const void* user_data);
185 
200  const char* client_id,
201  bool is_root,
202  int reply_count,
203  const void* user_data);
204 
221 typedef void (*nim_msglog_query_thread_history_msg_cb_func)(int res_code,
222  const char* root_msg,
223  int total,
224  uint64_t timestamp,
225  const char* msgs,
226  const void* user_data);
227 
231 static const char* kNIMMsglogStatusChangedKeyTalkID = "talk_id";
232 static const char* kNIMMsglogStatusChangedKeyMsgTimetag = "msg_timetag";
233 static const char* kNIMMsglogStatusChangedKeyStatus = "status"; // 消息状态变更通知结果 Json Keys
235 
244 static const char* kNIMMsglogQueryKeyCount = "count";
245 static const char* kNIMMsglogQueryKeySource = "source";
246 static const char* kNIMMsglogQueryKeyContent =
247  "content"; // 查询消息历史结果Json Keys
249 
254 };
255 
271 };
272 
280 };
281 
295 };
296 
313  10,
316  101,
318  102,
320  103,
322  // 服务器在线同步协议返回的结果
324  1000,
328  1002,
331  // 本地发起的操作通知APP上层
339  2006,
344  2010,
347  // Netcall本地操作通知
349  3103,
351  3104,
353  3105,
367  409,
370 };
371 
375  // 这二个标志适用于所有
378 };
379 
384 };
391  // 导入状态
398  // 导出状态
409 };
410 
412 enum NIMFullTextSearchOnlineOrderType { kNIMFullTextSearchOrderByAsc = 1, kNIMFullTextSearchOrderByDesc = 2 };
413 
415 typedef struct {
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);
429  char* encrypt_key_;
436  void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
443  void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
449  bool (*ExportBackupToRemoteLogFiter)(const char* const msg, void* user_data);
454  void (*NewPathRelease)(char** data_ptr);
455  void* user_data_;
458 typedef struct {
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);
478  void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
485  void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
490  void (*NewPathRelease)(char**);
491  void* user_data_;
493 
497 static const char* kNIMMsglogQueryJsonExtensionKeyDirection = "direction";
500 static const char* kNIMMsglogQueryJsonExtensionKeyReverse = "reverse";
502 static const char* kNIMMsglogQueryJsonExtensionKeyEndTime = "endtime"; // 接口nim_msglog_query_msg_async扩展参数json key定义
504 
508 static const char* kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment = "need_auto_download_attachment";
511 static const char* kNIMMsglogJsonExtKeyQueryMsgTypeList = "query_msg_type_list"; // 接口nim_msglog_query_msg_online_async扩展参数json_extension key定义
513 
517 static const char* kNIMMsglogJsonExtKeyComposeLastMsg = "compose_last_msg";
520 static const char* kNIMMsglogJsonExtKeyExcludeMsgType = "exclude_msg_type"; // 接口 nim_msglog_insert_msglog_async 扩展参数 json_extension key 定义
522 
525  kForward = 0,
526  kBackward = 1,
527 };
528 
539 };
540 
542 typedef struct {
543  enum NIMSessionType to_type_;
545  int64_t from_time_;
546  int64_t end_time_;
547  int64_t end_msg_id_;
548  bool reverse_;
555 
557 typedef struct {
558  enum NIMSessionType to_type_;
559  int limit;
560  int64_t from_time_;
561  int64_t end_time_;
562  bool reverse_;
564 
572 static const char* kNIMNotificationKeyId = "id";
575 static const char* kNIMNotificationKeyData = "data";
577 static const char* kNIMNotificationKeyDataIds = "ids";
579 static const char* kNIMNotificationKeyDataInvalidIds = "invalid_ids";
581 static const char* kNIMNotificationKeyDataId = "id";
583 static const char* kNIMNotificationKeyDataLeave = "leave";
585 static const char* kNIMNotificationKeyDataMute = "mute";
587 static const char* kNIMNotificationKeyTeamInfo = "team_info";
589 static const char* kNIMNotificationKeyTeamMember = "team_member";
591 static const char* kNIMNotificationKeyUserNameCards = "name_cards";
593 static const char* kNIMNotificationKeyAttach = "attach"; // 群组通知 Json Keys
595 
601 static const char* kNIMNotificationIdNetCallTypeKey = "calltype";
604 static const char* kNIMNotificationIdNetCallTimeKey = "time";
606 static const char* kNIMNotificationIdNetCallIdsKey = "ids";
608 static const char* kNIMNotificationIdNetCallChannelKey = "channel";
610 static const char* kNIMNotificationIdNetCallDurationKey = "duration";
612 static const char* kNIMNotificationIdNetCallFromKey = "from";
614 static const char* kNIMNotificationIdNetCallEXTKey = "ext"; // kNIMNotificationIdNetcallBill
616  // kNIMNotificationIdNetcallMiss
617  // kNIMNotificationIdNetcallReject
618  // kNIMNotificationIdLocalNetcallReject
619  // kNIMNotificationIdLocalNetcallNoResponse
620  // Data Keys
621 
625 static const char* kNIMDELMSGSelfNotifyKeySessionID = "session_id";
628 static const char* kNIMDELMSGSelfNotifyKeyMsgClientID = "client_id";
630 static const char* kNIMDELMSGSelfNotifyKeyEXT = "ext"; // 单向删除某条消息服务端推送 Json Keys
632 
636 static const char* kNIMTEAMMSGACKREADSUCCESSIDSKEY = "success_ids";
639 static const char* kNIMTEAMMSGACKREADFAILUREIDSKEY = "failure_ids";
641 static const char* kNIMTEAMMSGACKREADSIGNOREDIDSKEY = "ignored_ids"; // 单向删除某条消息参数 Json Keys
643 
645 typedef struct {
646  enum NIMSessionType to_type_;
647  char from_account[128];
648  char to_account[128];
649  int64_t server_id;
650  char client_id[128];
651  int64_t time;
652  char ext[1024];
654 
656 typedef struct {
657  enum NIMSessionType to_type_;
658  char from_account[128];
659  char to_account[128];
660  int64_t server_id;
661  char client_id[128];
662  int64_t time;
664 
666 typedef struct {
667  int64_t from_time;
668  int64_t to_time;
669  int64_t exclude_msg_id;
670  int32_t limit;
671  int32_t reverse;
673 
674 #ifdef __cplusplus
675 };
676 #endif //__cplusplus
677 #endif // NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
kNIMMsgLogStatusDraft
@ kNIMMsgLogStatusDraft
Definition: nim_msglog_def.h:292
kNIMMessageTypeFile
@ kNIMMessageTypeFile
Definition: nim_msglog_def.h:264
kNIMNotificationIdNetCallEXTKey
static const char * kNIMNotificationIdNetCallEXTKey
string 会发起时传入的 custominfo参数
Definition: nim_msglog_def.h:614
kNIMSessionTypeSuperTeam
@ kNIMSessionTypeSuperTeam
Definition: nim_session_def.h:19
kNIMMsgLogSubStatusNotPlaying
@ kNIMMsgLogSubStatusNotPlaying
Definition: nim_msglog_def.h:376
LogsBackupRemoteState_IMP_DownloadBackupFailed
@ LogsBackupRemoteState_IMP_DownloadBackupFailed
Definition: nim_msglog_def.h:394
kNIMNotificationIdSuperTeamLeave
@ kNIMNotificationIdSuperTeamLeave
Definition: nim_msglog_def.h:359
nim_msglog_delete_history_online_notify_cb_func
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
NIMMsgLogQueryRange
Definition: nim_msglog_def.h:530
kNIMNotificationIdLocalRejectApply
@ kNIMNotificationIdLocalRejectApply
Definition: nim_msglog_def.h:334
kNIMNotificationIdTeamOwnerTransfer
@ kNIMNotificationIdTeamOwnerTransfer
Definition: nim_msglog_def.h:308
kNIMMessageTypeNotification
@ kNIMMessageTypeNotification
Definition: nim_msglog_def.h:263
kNIMNotificationIdTeamInvite
@ kNIMNotificationIdTeamInvite
Definition: nim_msglog_def.h:299
kNIMMessageFeatureRoamMsg
@ kNIMMessageFeatureRoamMsg
Definition: nim_msglog_def.h:277
NIMQueryThreadHistoryMsgAsyncParam::reverse
int32_t reverse
Definition: nim_msglog_def.h:671
kNIMNotificationIdLocalNetcallCanceled
@ kNIMNotificationIdLocalNetcallCanceled
Definition: nim_msglog_def.h:352
kNIMMessageFeatureLeaveMsg
@ kNIMMessageFeatureLeaveMsg
Definition: nim_msglog_def.h:276
LogsBackupRemoteState_IMP_RAWError
@ LogsBackupRemoteState_IMP_RAWError
Definition: nim_msglog_def.h:395
kNIMNotificationIdNetCallChannelKey
static const char * kNIMNotificationIdNetCallChannelKey
int64 通道id
Definition: nim_msglog_def.h:608
NIMMessageType
NIMMessageType
Definition: nim_msglog_def.h:257
NIMDeleteMessagesSelfParam::time
int64_t time
Definition: nim_msglog_def.h:651
kNIMNotificationIdNetcallReject
@ kNIMNotificationIdNetcallReject
Definition: nim_msglog_def.h:319
kNIMMsgLogStatusDeleted
@ kNIMMsgLogStatusDeleted
Definition: nim_msglog_def.h:287
kNIMMsglogQueryJsonExtensionKeyDirection
static const char * kNIMMsglogQueryJsonExtensionKeyDirection
NIMMsglogSearchDirection,默认为kForward.
Definition: nim_msglog_def.h:498
LogsBackupRemoteState_IMP_ParseRAWError
@ LogsBackupRemoteState_IMP_ParseRAWError
Definition: nim_msglog_def.h:396
NIMDeleteSessionHistoryMessagesNotifyInfo::time
int64_t time
Definition: nim_msglog_def.h:20
kNIMNotificationKeyDataInvalidIds
static const char * kNIMNotificationKeyDataInvalidIds
string array
Definition: nim_msglog_def.h:579
NIMQueryMsgOnlineAsyncParam::auto_download_attachment_
bool auto_download_attachment_
Definition: nim_msglog_def.h:550
NIMQueryThreadHistoryMsgAsyncParam::to_time
int64_t to_time
Definition: nim_msglog_def.h:668
LogsBackupRemoteState_EXP_SyncToSrvError
@ LogsBackupRemoteState_EXP_SyncToSrvError
Definition: nim_msglog_def.h:402
kNIMNotificationIdLocalApplyTeam
@ kNIMNotificationIdLocalApplyTeam
Definition: nim_msglog_def.h:333
kNIMMsglogJsonExtKeyComposeLastMsg
static const char * kNIMMsglogJsonExtKeyComposeLastMsg
bool 插入新消息若需要更新会话数据,指定是否需要绑定历史消息中的最后一条消息。true:需要,false:不需要
Definition: nim_msglog_def.h:518
NIMMessageFeature
NIMMessageFeature
Definition: nim_msglog_def.h:274
NIMLogsBackupImportInfo::user_data_
void * user_data_
Definition: nim_msglog_def.h:491
kNIMMsglogQuerySourceLocal
@ kNIMMsglogQuerySourceLocal
Definition: nim_msglog_def.h:252
kNIMNotificationIdSuperTeamAddManager
@ kNIMNotificationIdSuperTeamAddManager
Definition: nim_msglog_def.h:364
nim_msglog_import_prg_cb_func
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
NIMDeleteMessagesSelfParam
单向删除某条消息参数
Definition: nim_msglog_def.h:645
kNIMMsgLogQueryRangeSuperTeam
@ kNIMMsgLogQueryRangeSuperTeam
Definition: nim_msglog_def.h:533
kNIMMsglogQueryKeySource
static const char * kNIMMsglogQueryKeySource
Definition: nim_msglog_def.h:245
kNIMDELMSGSelfNotifyKeyEXT
static const char * kNIMDELMSGSelfNotifyKeyEXT
string 用户自定义数据
Definition: nim_msglog_def.h:630
kNIMNotificationIdLocalNetcallNoResponse
@ kNIMNotificationIdLocalNetcallNoResponse
Definition: nim_msglog_def.h:350
kNIMNotificationIdLocalGetTeamInfo
@ kNIMNotificationIdLocalGetTeamInfo
Definition: nim_msglog_def.h:338
nim_msglog_delete_message_self_notify_cb_func
void(* nim_msglog_delete_message_self_notify_cb_func)(const char *infos, const void *user_data)
Definition: nim_msglog_def.h:80
kNIMNotificationIdNetCallIdsKey
static const char * kNIMNotificationIdNetCallIdsKey
StrArray 帐号
Definition: nim_msglog_def.h:606
kNIMNotificationIdSuperTeamUpdate
@ kNIMNotificationIdSuperTeamUpdate
Definition: nim_msglog_def.h:360
NIMQueryThreadHistoryMsgAsyncParam::exclude_msg_id
int64_t exclude_msg_id
Definition: nim_msglog_def.h:669
kNIMNotificationIdTeamApplyPass
@ kNIMNotificationIdTeamApplyPass
Definition: nim_msglog_def.h:307
NIMQueryThreadHistoryMsgAsyncParam::from_time
int64_t from_time
Definition: nim_msglog_def.h:667
kNIMNotificationKeyTeamMember
static const char * kNIMNotificationKeyTeamMember
string, team_member_property 群组成员信息 Json Keys
Definition: nim_msglog_def.h:589
LogsBackupRemoteState_FinalState_Begin
@ LogsBackupRemoteState_FinalState_Begin
Definition: nim_msglog_def.h:407
kNIMMsgLogStatusRead
@ kNIMMsgLogStatusRead
Definition: nim_msglog_def.h:286
kNIMNotificationKeyData
static const char * kNIMNotificationKeyData
json object 包含以下5种可能的数据结构
Definition: nim_msglog_def.h:575
kNIMNotificationIdLocalUpdateOtherNick
@ kNIMNotificationIdLocalUpdateOtherNick
Definition: nim_msglog_def.h:337
kNIMMsglogStatusChangedKeyTalkID
static const char * kNIMMsglogStatusChangedKeyTalkID
Definition: nim_msglog_def.h:231
NIMNotificationId
NIMNotificationId
Definition: nim_msglog_def.h:298
kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
static const char * kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:509
kNIMNotificationIdTeamKick
@ kNIMNotificationIdTeamKick
Definition: nim_msglog_def.h:301
NIMDeleteMessagesSelfParam::server_id
int64_t server_id
Definition: nim_msglog_def.h:649
LogsBackupRemoteState_EXP_LocalDBFailed
@ LogsBackupRemoteState_EXP_LocalDBFailed
Definition: nim_msglog_def.h:399
kNIMMsglogStatusChangedKeyMsgTimetag
static const char * kNIMMsglogStatusChangedKeyMsgTimetag
Definition: nim_msglog_def.h:232
kNIMNotificationIdNetcallBill
@ kNIMNotificationIdNetcallBill
Definition: nim_msglog_def.h:317
NIMQueryMsgByKeywordOnlineAsyncParam::end_time_
int64_t end_time_
Definition: nim_msglog_def.h:561
NIMQueryMsgOnlineAsyncParam::end_msg_id_
int64_t end_msg_id_
Definition: nim_msglog_def.h:547
NIMLogsBackupExportInfo::encrypt_key_
char * encrypt_key_
Definition: nim_msglog_def.h:429
nim_msglog_query_single_cb_func
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
@ kNIMMessageTypeAudio
Definition: nim_msglog_def.h:260
kBackward
@ kBackward
Definition: nim_msglog_def.h:526
NIMMsgLogSubStatus
NIMMsgLogSubStatus
Definition: nim_msglog_def.h:373
kNIMNotificationIdLocalRejectInvite
@ kNIMNotificationIdLocalRejectInvite
Definition: nim_msglog_def.h:335
kNIMMessageTypeText
@ kNIMMessageTypeText
Definition: nim_msglog_def.h:258
kNIMMsgLogQueryRangeAllP2P
@ kNIMMsgLogQueryRangeAllP2P
Definition: nim_msglog_def.h:535
NIMQueryMsgOnlineAsyncParam::msg_type_list_
enum NIMMessageType * msg_type_list_
Definition: nim_msglog_def.h:551
nim_msglog_status_changed_cb_func
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
@ kNIMNotificationIdTeamAddManager
Definition: nim_msglog_def.h:309
kNIMNotificationIdLocalNetcallReject
@ kNIMNotificationIdLocalNetcallReject
Definition: nim_msglog_def.h:348
kNIMMsglogJsonExtKeyQueryMsgTypeList
static const char * kNIMMsglogJsonExtKeyQueryMsgTypeList
array 要查询的消息类型
Definition: nim_msglog_def.h:511
kNIMTEAMMSGACKREADSUCCESSIDSKEY
static const char * kNIMTEAMMSGACKREADSUCCESSIDSKEY
string json array 群组消息标记已读成功的msg id list key
Definition: nim_msglog_def.h:637
kNIMMessageTypeTips
@ kNIMMessageTypeTips
Definition: nim_msglog_def.h:265
LogsBackupRemoteState_EXP_UploadBackupFailed
@ LogsBackupRemoteState_EXP_UploadBackupFailed
Definition: nim_msglog_def.h:401
kNIMNotificationIdLocalGetTeamList
@ kNIMNotificationIdLocalGetTeamList
Definition: nim_msglog_def.h:340
NIMQueryMsgByKeywordOnlineAsyncParam::reverse_
bool reverse_
Definition: nim_msglog_def.h:562
kNIMMessageTypeCustom
@ kNIMMessageTypeCustom
Definition: nim_msglog_def.h:268
kNIMNotificationIdLocalMute
@ kNIMNotificationIdLocalMute
Definition: nim_msglog_def.h:342
kNIMNotificationIdTeamSyncCreate
@ kNIMNotificationIdTeamSyncCreate
Definition: nim_msglog_def.h:323
kNIMMsgLogStatusUnread
@ kNIMMsgLogStatusUnread
Definition: nim_msglog_def.h:285
kNIMNotificationIdLocalUpdateMemberProperty
@ kNIMNotificationIdLocalUpdateMemberProperty
Definition: nim_msglog_def.h:336
NIMQueryMsgOnlineAsyncParam::type_list_length_
int type_list_length_
Definition: nim_msglog_def.h:552
nim_session_def.h
最近会话列表 接口相关的常量函数等定义头文件
NIMQueryMsgByKeywordOnlineAsyncParam::limit
int limit
Definition: nim_msglog_def.h:559
kNIMMsglogJsonExtKeyExcludeMsgType
static const char * kNIMMsglogJsonExtKeyExcludeMsgType
array 绑定的消息要排除的类型,始终排除掉未知类型(1000)消息
Definition: nim_msglog_def.h:520
kNIMNotificationKeyTeamInfo
static const char * kNIMNotificationKeyTeamInfo
string, team_info 群组信息 Json Keys
Definition: nim_msglog_def.h:587
kNIMNotificationIdSuperTeamOwnerTransfer
@ kNIMNotificationIdSuperTeamOwnerTransfer
Definition: nim_msglog_def.h:363
nim_msglog_res_cb_func
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
nim_msglog_res_ex_cb_func
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
@ LogsBackupRemoteState_UnDef
Definition: nim_msglog_def.h:388
LogsBackupRemoteState_Done_NoLogs
@ LogsBackupRemoteState_Done_NoLogs
Definition: nim_msglog_def.h:405
kNIMMessageFeatureDefault
@ kNIMMessageFeatureDefault
Definition: nim_msglog_def.h:275
LogsBackupRemoteState_Begin
@ LogsBackupRemoteState_Begin
Definition: nim_msglog_def.h:387
nim_msglog_full_text_search_online_cb_func
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
@ kNIMMessageTypeRobot
Definition: nim_msglog_def.h:266
LogsBackupRemoteState_IMP_SyncFromSrvError
@ LogsBackupRemoteState_IMP_SyncFromSrvError
Definition: nim_msglog_def.h:393
NIMQueryMsgOnlineAsyncParam::end_time_
int64_t end_time_
Definition: nim_msglog_def.h:546
kNIMNotificationKeyAttach
static const char * kNIMNotificationKeyAttach
string array, 应用自定义扩展字段
Definition: nim_msglog_def.h:593
kNIMNotificationIdLocalCreateTeam
@ kNIMNotificationIdLocalCreateTeam
Definition: nim_msglog_def.h:332
NIMMsgLogStatus
NIMMsgLogStatus
Definition: nim_msglog_def.h:283
kNIMNotificationIdNetCallDurationKey
static const char * kNIMNotificationIdNetCallDurationKey
int64 通话时长 单位秒
Definition: nim_msglog_def.h:610
kNIMNotificationIdNetCallTypeKey
static const char * kNIMNotificationIdNetCallTypeKey
int 通话类型对应NIMVideoChatMode
Definition: nim_msglog_def.h:602
LogsBackupRemoteOperate_Export
@ LogsBackupRemoteOperate_Export
Definition: nim_msglog_def.h:382
kNIMTEAMMSGACKREADSIGNOREDIDSKEY
static const char * kNIMTEAMMSGACKREADSIGNOREDIDSKEY
string json array 群组消息标记已读忽略的msg id list key(消息不需要标记,或者已经标记过)
Definition: nim_msglog_def.h:641
kNIMMsgLogQueryRangeAllTeam
@ kNIMMsgLogQueryRangeAllTeam
Definition: nim_msglog_def.h:536
LogsBackupRemoteState_SDKError
@ LogsBackupRemoteState_SDKError
Definition: nim_msglog_def.h:390
NIMQueryMsgAsyncParam::time
int64_t time
Definition: nim_msglog_def.h:662
NIMQueryMsgAsyncParam
云端查询某条消息参数一般用在thread聊天场景中
Definition: nim_msglog_def.h:656
kNIMNotificationIdTeamRemoveManager
@ kNIMNotificationIdTeamRemoveManager
Definition: nim_msglog_def.h:310
kNIMMessageTypeUnknown
@ kNIMMessageTypeUnknown
Definition: nim_msglog_def.h:270
LogsBackupRemoteOperate_Import
@ LogsBackupRemoteOperate_Import
Definition: nim_msglog_def.h:383
kNIMDELMSGSelfNotifyKeySessionID
static const char * kNIMDELMSGSelfNotifyKeySessionID
string, 会话 ID
Definition: nim_msglog_def.h:626
LogsBackupRemoteState
LogsBackupRemoteState
Definition: nim_msglog_def.h:386
kNIMNotificationIdNetCallTimeKey
static const char * kNIMNotificationIdNetCallTimeKey
int64 时间 单位毫秒
Definition: nim_msglog_def.h:604
kNIMNotificationKeyId
static const char * kNIMNotificationKeyId
int, 见NIMNotificationId
Definition: nim_msglog_def.h:573
NIMQueryMsgByKeywordOnlineAsyncParam::from_time_
int64_t from_time_
Definition: nim_msglog_def.h:560
nim_msglog_delete_history_online_res_cb_func
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
NIMLogsBackupExportInfo::user_data_
void * user_data_
Definition: nim_msglog_def.h:455
kNIMMessageTypeVideo
@ kNIMMessageTypeVideo
Definition: nim_msglog_def.h:261
kNIMMsgLogQueryRangeTeam
@ kNIMMsgLogQueryRangeTeam
Definition: nim_msglog_def.h:532
kNIMMsgLogSubStatusPlayed
@ kNIMMsgLogSubStatusPlayed
Definition: nim_msglog_def.h:377
kNIMSessionTypeTeam
@ kNIMSessionTypeTeam
Definition: nim_session_def.h:18
kNIMMessageTypeImage
@ kNIMMessageTypeImage
Definition: nim_msglog_def.h:259
NIMLogsBackupImportInfo
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:458
kNIMMessageTypeLocation
@ kNIMMessageTypeLocation
Definition: nim_msglog_def.h:262
kNIMNotificationIdSuperTeamDismiss
@ kNIMNotificationIdSuperTeamDismiss
Definition: nim_msglog_def.h:362
nim_msglog_delete_message_self_res_cb_func
void(* nim_msglog_delete_message_self_res_cb_func)(int res_code, const void *user_data)
Definition: nim_msglog_def.h:72
kNIMMessageFeatureSyncMsg
@ kNIMMessageFeatureSyncMsg
Definition: nim_msglog_def.h:278
nim_msglog_query_message_is_thread_root_async_cb_func
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
NIMDeleteSessionHistoryMessagesNotifyInfo
删除与某一会话的历史记录推送数据定义
Definition: nim_msglog_def.h:17
kNIMMsgLogStatusNone
@ kNIMMsgLogStatusNone
Definition: nim_msglog_def.h:284
kNIMMsgLogQueryRangeUnknown
@ kNIMMsgLogQueryRangeUnknown
Definition: nim_msglog_def.h:538
kNIMMsgLogQueryRangeAllSuperTeam
@ kNIMMsgLogQueryRangeAllSuperTeam
Definition: nim_msglog_def.h:537
NIMQueryMsgOnlineAsyncParam::is_exclusion_type_
bool is_exclusion_type_
Definition: nim_msglog_def.h:553
kNIMNotificationKeyDataMute
static const char * kNIMNotificationKeyDataMute
int
Definition: nim_msglog_def.h:585
NIMQueryMsgOnlineAsyncParam::from_time_
int64_t from_time_
Definition: nim_msglog_def.h:545
kNIMMsgLogStatusSendCancel
@ kNIMMsgLogStatusSendCancel
Definition: nim_msglog_def.h:293
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
kNIMMessageFeatureCustomizedMsg
@ kNIMMessageFeatureCustomizedMsg
Definition: nim_msglog_def.h:279
NIMQueryMsgByKeywordOnlineAsyncParam
根据关键字村云端查询消息记录的参数定义
Definition: nim_msglog_def.h:557
kNIMMsglogQueryJsonExtensionKeyReverse
static const char * kNIMMsglogQueryJsonExtensionKeyReverse
bool,返回的消息历史排序正序(false)/逆序(true),默认为false
Definition: nim_msglog_def.h:500
LogsBackupRemoteState_EXP_RAWError
@ LogsBackupRemoteState_EXP_RAWError
Definition: nim_msglog_def.h:400
LogsBackupRemoteState_IMP_NoBackup
@ LogsBackupRemoteState_IMP_NoBackup
Definition: nim_msglog_def.h:392
NIMQueryMsgOnlineAsyncParam::need_save_to_local_
bool need_save_to_local_
Definition: nim_msglog_def.h:549
kNIMNotificationKeyUserNameCards
static const char * kNIMNotificationKeyUserNameCards
json string array, 操作者和被操作者双方的 用户名片 Json Keys
Definition: nim_msglog_def.h:591
kNIMNotificationIdTeamInviteAccept
@ kNIMNotificationIdTeamInviteAccept
Definition: nim_msglog_def.h:311
nim_msglog_delete_history_online_res_cb_func_ex
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
@ kNIMMsgLogStatusSendFailed
Definition: nim_msglog_def.h:289
kNIMNotificationIdTeamDismiss
@ kNIMNotificationIdTeamDismiss
Definition: nim_msglog_def.h:306
kNIMMsgLogStatusSending
@ kNIMMsgLogStatusSending
Definition: nim_msglog_def.h:288
kNIMNotificationKeyDataLeave
static const char * kNIMNotificationKeyDataLeave
bool
Definition: nim_msglog_def.h:583
NIMMsglogQuerySource
NIMMsglogQuerySource
Definition: nim_msglog_def.h:251
kNIMNotificationIdSuperTeamMuteMember
@ kNIMNotificationIdSuperTeamMuteMember
Definition: nim_msglog_def.h:366
kNIMNotificationIdLocalMuteMember
@ kNIMNotificationIdLocalMuteMember
Definition: nim_msglog_def.h:341
NIMQueryThreadHistoryMsgAsyncParam
云端查询thread聊天历史参数
Definition: nim_msglog_def.h:666
LogsBackupRemoteState_UserCanceled
@ LogsBackupRemoteState_UserCanceled
Definition: nim_msglog_def.h:389
nim_msglog_modify_res_cb_func
void(* nim_msglog_modify_res_cb_func)(int res_code, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:164
kNIMNotificationIdNetCallFromKey
static const char * kNIMNotificationIdNetCallFromKey
string 发起者帐号
Definition: nim_msglog_def.h:612
NIMFullTextSearchOnlineOrderType
NIMFullTextSearchOnlineOrderType
全文检索排序规则
Definition: nim_msglog_def.h:412
kNIMTEAMMSGACKREADFAILUREIDSKEY
static const char * kNIMTEAMMSGACKREADFAILUREIDSKEY
string json array 群组消息标记已读失败的msg id list key
Definition: nim_msglog_def.h:639
kNIMMsgLogSubStatusNone
@ kNIMMsgLogSubStatusNone
Definition: nim_msglog_def.h:374
nim_msglog_query_cb_func
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
@ kNIMMsgLogStatusSent
Definition: nim_msglog_def.h:290
NIMQueryMsgAsyncParam::server_id
int64_t server_id
Definition: nim_msglog_def.h:660
kNIMNotificationIdTeamSyncUpdateMemberProperty
@ kNIMNotificationIdTeamSyncUpdateMemberProperty
Definition: nim_msglog_def.h:327
NIMSessionType
NIMSessionType
Definition: nim_session_def.h:16
kNIMMsgLogQueryRangeP2P
@ kNIMMsgLogQueryRangeP2P
Definition: nim_msglog_def.h:531
LogsBackupRemoteOperate
LogsBackupRemoteOperate
Definition: nim_msglog_def.h:381
kNIMNotificationKeyDataIds
static const char * kNIMNotificationKeyDataIds
string array
Definition: nim_msglog_def.h:577
LogsBackupRemoteState_End
@ LogsBackupRemoteState_End
Definition: nim_msglog_def.h:406
kNIMNotificationIdTeamUpdate
@ kNIMNotificationIdTeamUpdate
Definition: nim_msglog_def.h:304
kNIMDELMSGSelfNotifyKeyMsgClientID
static const char * kNIMDELMSGSelfNotifyKeyMsgClientID
string 消息ID
Definition: nim_msglog_def.h:628
NIMQueryMsgOnlineAsyncParam::limit_count_
int limit_count_
Definition: nim_msglog_def.h:544
kNIMMessageTypeG2NetCall
@ kNIMMessageTypeG2NetCall
Definition: nim_msglog_def.h:267
kNIMMsgLogStatusRefused
@ kNIMMsgLogStatusRefused
Definition: nim_msglog_def.h:294
kNIMNotificationIdLocalGetTeamMsgUnreadList
@ kNIMNotificationIdLocalGetTeamMsgUnreadList
Definition: nim_msglog_def.h:345
kNIMNotificationIdSuperTeamKick
@ kNIMNotificationIdSuperTeamKick
Definition: nim_msglog_def.h:357
kNIMNotificationIdLocalGetTeamMsgUnreadCount
@ kNIMNotificationIdLocalGetTeamMsgUnreadCount
Definition: nim_msglog_def.h:343
kNIMNotificationIdSuperTeamRemoveManager
@ kNIMNotificationIdSuperTeamRemoveManager
Definition: nim_msglog_def.h:365
kNIMMsglogQueryJsonExtensionKeyEndTime
static const char * kNIMMsglogQueryJsonExtensionKeyEndTime
int64_t,查询消息的截止时间,如果direction为kForward,则截止时间应小于anchor_msg_time,否则大于anchor_msg_time,...
Definition: nim_msglog_def.h:502
kForward
@ kForward
Definition: nim_msglog_def.h:525
kNIMMsgLogStatusReceipt
@ kNIMMsgLogStatusReceipt
Definition: nim_msglog_def.h:291
kNIMNotificationIdSuperTeamInvite
@ kNIMNotificationIdSuperTeamInvite
Definition: nim_msglog_def.h:355
nim_msglog_query_thread_history_msg_cb_func
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
@ LogsBackupRemoteState_Done
Definition: nim_msglog_def.h:404
NIMQueryMsgOnlineAsyncParam
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:542
kNIMMsglogQuerySourceServer
@ kNIMMsglogQuerySourceServer
Definition: nim_msglog_def.h:253
kNIMSessionTypeP2P
@ kNIMSessionTypeP2P
Definition: nim_session_def.h:17
kNIMNotificationIdTeamMuteMember
@ kNIMNotificationIdTeamMuteMember
Definition: nim_msglog_def.h:312
NIMLogsBackupExportInfo
导出消息记录到云端参数定义
Definition: nim_msglog_def.h:415
NIMQueryMsgOnlineAsyncParam::reverse_
bool reverse_
Definition: nim_msglog_def.h:548
NIMMsglogSearchDirection
NIMMsglogSearchDirection
Definition: nim_msglog_def.h:524
kNIMNotificationIdSuperTeamApplyPass
@ kNIMNotificationIdSuperTeamApplyPass
Definition: nim_msglog_def.h:368
NIMQueryThreadHistoryMsgAsyncParam::limit
int32_t limit
Definition: nim_msglog_def.h:670
kNIMMsglogStatusChangedKeyStatus
static const char * kNIMMsglogStatusChangedKeyStatus
Definition: nim_msglog_def.h:233
LogsBackupRemoteState_IMP_LocalDBFailed
@ LogsBackupRemoteState_IMP_LocalDBFailed
Definition: nim_msglog_def.h:397
kNIMNotificationIdSuperTeamInviteAccept
@ kNIMNotificationIdSuperTeamInviteAccept
Definition: nim_msglog_def.h:369
kNIMNotificationIdTeamLeave
@ kNIMNotificationIdTeamLeave
Definition: nim_msglog_def.h:303
kNIMNotificationKeyDataId
static const char * kNIMNotificationKeyDataId
string
Definition: nim_msglog_def.h:581
kNIMMsglogQueryKeyContent
static const char * kNIMMsglogQueryKeyContent
Definition: nim_msglog_def.h:246
kNIMMsglogQueryKeyCount
static const char * kNIMMsglogQueryKeyCount
Definition: nim_msglog_def.h:244
kNIMNotificationIdTeamMemberChanged
@ kNIMNotificationIdTeamMemberChanged
Definition: nim_msglog_def.h:325
kNIMMsgLogQueryRangeAll
@ kNIMMsgLogQueryRangeAll
Definition: nim_msglog_def.h:534
kNIMNotificationIdNetcallMiss
@ kNIMNotificationIdNetcallMiss
Definition: nim_msglog_def.h:315