NIM PC Cross Platform SDK
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
14extern "C" {
15#endif
17typedef struct {
21 char id[128];
23 int64_t time;
25 char ext[1024];
27
35typedef void (*nim_msglog_delete_history_online_res_cb_func)(int res_code, const char* accid, const void* user_data);
36
52 const char* accid,
53 enum NIMSessionType type,
54 uint64_t time,
55 const char* ext,
56 const void* user_data);
57
67 int node_count,
68 const void* user_data);
69
76typedef void (*nim_msglog_delete_message_self_res_cb_func)(int res_code, const void* user_data);
77
84typedef void (*nim_msglog_delete_message_self_notify_cb_func)(const char* infos, const void* user_data);
85
96typedef void (
97 *nim_msglog_query_single_cb_func)(int res_code, const char* msg_id, const char* result, const char* json_extension, const void* user_data);
98
120typedef void (*nim_msglog_query_cb_func)(int res_code,
121 const char* id,
122 enum NIMSessionType type,
123 const char* result,
124 const char* json_extension,
125 const void* user_data);
126
136typedef void (
137 *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);
138
147typedef void (*nim_msglog_res_cb_func)(int res_code, const char* msg_id, const char* json_extension, const void* user_data);
148
159typedef void (*nim_msglog_res_ex_cb_func)(int res_code, const char* uid, enum NIMSessionType type, const char* json_extension, const void* user_data);
160
168typedef void (*nim_msglog_modify_res_cb_func)(int res_code, const char* json_extension, const void* user_data);
169
178typedef void (*nim_msglog_import_prg_cb_func)(int64_t imported_count, int64_t total_count, const char* json_extension, const void* user_data);
179
188typedef void (*nim_msglog_status_changed_cb_func)(int res_code, const char* result, const char* json_extension, const void* user_data);
189
204 const char* client_id,
205 bool is_root,
206 int reply_count,
207 const void* user_data);
208
226 const char* root_msg,
227 int total,
228 uint64_t timestamp,
229 const char* msgs,
230 const void* user_data);
231
236static const char* kNIMMsglogStatusChangedKeyTalkID = "talk_id";
238static const char* kNIMMsglogStatusChangedKeyMsgTimetag = "msg_timetag";
240static const char* kNIMMsglogStatusChangedKeyStatus = "status"; // 消息状态变更通知结果 Json Keys
242
252static const char* kNIMMsglogQueryKeyCount = "count";
254static const char* kNIMMsglogQueryKeySource = "source";
255static const char* kNIMMsglogQueryKeyContent =
257 "content"; // 查询消息历史结果Json Keys
259
266};
267
292
295};
296
309};
310
335};
336
367
368 // 服务器在线同步协议返回的结果
375
376 // 本地发起的操作通知APP上层
401
402 // Netcall本地操作通知
432
437 // 这二个标志适用于所有
442};
443
461 // 导入状态
474 // 导出状态
483
492};
493
495enum NIMFullTextSearchRule { kNIMFullTextSearchOrderByAsc = 1, kNIMFullTextSearchOrderByDesc = 2, kNIMFullTextSearchNoGroupBySession = 4 };
496
498typedef struct {
504 char* (*ExportBackupToRemotePackageCallback)(const char* const file_path, void* user_data);
511 char* (*ExportBackupToRemoteEncryptCallback)(const char* const file_path, const char* const encrypt_key, void* user_data);
520 void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
527 void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
533 bool (*ExportBackupToRemoteLogFiter)(const char* const msg, void* user_data);
538 void (*NewPathRelease)(char** data_ptr);
543typedef struct {
549 char* (*ImportBackupFromRemoteUnPackageCallback)(const char* const file_path, void* user_data);
556 char* (*ImportBackupFromRemoteDecryptCallback)(const char* const file_path, const char* const encrypt_key, void* user_data);
563 void (*LogsBackupProgressCallback)(enum LogsBackupRemoteOperate op, float progress, void* user_data);
570 void (*LogsBackupCompleteCallback)(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void* user_data);
575 void (*NewPathRelease)(char**);
579
584static const char* kNIMMsglogQueryJsonExtensionKeyDirection = "direction";
586static const char* kNIMMsglogQueryJsonExtensionKeyReverse = "reverse";
588static const char* kNIMMsglogQueryJsonExtensionKeyEndTime = "endtime"; // 接口nim_msglog_query_msg_async扩展参数json key定义
590
595static const char* kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment = "need_auto_download_attachment";
597static const char* kNIMMsglogJsonExtKeyQueryMsgTypeList = "query_msg_type_list"; // 接口nim_msglog_query_msg_online_async扩展参数json_extension key定义
599
604static const char* kNIMMsglogJsonExtKeyComposeLastMsg = "compose_last_msg";
606static const char* kNIMMsglogJsonExtKeyExcludeMsgType = "exclude_msg_type"; // 接口 nim_msglog_insert_msglog_async 扩展参数 json_extension key 定义
608
615};
616
635};
636
638typedef struct {
644 int64_t from_time_;
646 int64_t end_time_;
648 int64_t end_msg_id_;
662
664typedef struct {
668 int limit;
670 int64_t from_time_;
672 int64_t end_time_;
676
685static const char* kNIMNotificationKeyId = "id";
687static const char* kNIMNotificationKeyData = "data";
689static const char* kNIMNotificationKeyDataIds = "ids";
691static const char* kNIMNotificationKeyDataInvalidIds = "invalid_ids";
693static const char* kNIMNotificationKeyDataId = "id";
695static const char* kNIMNotificationKeyDataLeave = "leave";
697static const char* kNIMNotificationKeyDataMute = "mute";
699static const char* kNIMNotificationKeyTeamInfo = "team_info";
701static const char* kNIMNotificationKeyTeamMember = "team_member";
703static const char* kNIMNotificationKeyUserNameCards = "name_cards";
705static const char* kNIMNotificationKeyAttach = "attach"; // 群组通知 Json Keys
707
714static const char* kNIMNotificationIdNetCallTypeKey = "calltype";
716static const char* kNIMNotificationIdNetCallTimeKey = "time";
718static const char* kNIMNotificationIdNetCallIdsKey = "ids";
720static const char* kNIMNotificationIdNetCallChannelKey = "channel";
722static const char* kNIMNotificationIdNetCallDurationKey = "duration";
724static const char* kNIMNotificationIdNetCallFromKey = "from";
726static const char* kNIMNotificationIdNetCallEXTKey = "ext"; // kNIMNotificationIdNetcallBill
728 // kNIMNotificationIdNetcallMiss
729 // kNIMNotificationIdNetcallReject
730 // kNIMNotificationIdLocalNetcallReject
731 // kNIMNotificationIdLocalNetcallNoResponse
732 // Data Keys
733
738static const char* kNIMDELMSGSelfNotifyKeySessionID = "session_id";
740static const char* kNIMDELMSGSelfNotifyKeyMsgClientID = "client_id";
742static const char* kNIMDELMSGSelfNotifyKeyEXT = "ext"; // 单向删除某条消息服务端推送 Json Keys
744
749static const char* kNIMTEAMMSGACKREADSUCCESSIDSKEY = "success_ids";
751static const char* kNIMTEAMMSGACKREADFAILUREIDSKEY = "failure_ids";
753static const char* kNIMTEAMMSGACKREADSIGNOREDIDSKEY = "ignored_ids"; // 单向删除某条消息参数 Json Keys
755
757typedef struct {
761 char from_account[128];
763 char to_account[128];
765 int64_t server_id;
767 char client_id[128];
769 int64_t time;
771 char ext[1024];
773
775typedef struct {
779 char from_account[128];
781 char to_account[128];
783 int64_t server_id;
785 char client_id[128];
787 int64_t time;
789
791typedef struct {
793 int64_t from_time;
795 int64_t to_time;
799 int32_t limit;
801 int32_t reverse;
803
804#ifdef __cplusplus
805};
806#endif //__cplusplus
807#endif // NIM_SDK_DLL_EXPORT_HEADERS_MSGLOG_DEF_H_
static const char * kNIMMsglogJsonExtKeyQueryMsgTypeList
array 要查询的消息类型
Definition: nim_msglog_def.h:597
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:188
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:159
static const char * kNIMNotificationIdNetCallChannelKey
int64 通道id
Definition: nim_msglog_def.h:720
static const char * kNIMNotificationKeyTeamInfo
string, team_info 群组信息 Json Keys
Definition: nim_msglog_def.h:699
static const char * kNIMNotificationKeyAttach
string array, 应用自定义扩展字段
Definition: nim_msglog_def.h:705
static const char * kNIMTEAMMSGACKREADFAILUREIDSKEY
string json array 群组消息标记已读失败的msg id list key
Definition: nim_msglog_def.h:751
static const char * kNIMNotificationIdNetCallEXTKey
string 会发起时传入的 custominfo参数
Definition: nim_msglog_def.h:726
LogsBackupRemoteOperate
Definition: nim_msglog_def.h:445
@ LogsBackupRemoteOperate_Export
导出
Definition: nim_msglog_def.h:447
@ LogsBackupRemoteOperate_Import
导入
Definition: nim_msglog_def.h:449
static const char * kNIMNotificationIdNetCallTypeKey
int 通话类型对应NIMVideoChatMode
Definition: nim_msglog_def.h:714
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:120
static const char * kNIMMsglogQueryJsonExtensionKeyDirection
NIMMsglogSearchDirection,默认为kForward.
Definition: nim_msglog_def.h:584
void(* nim_msglog_delete_message_self_notify_cb_func)(const char *infos, const void *user_data)
Definition: nim_msglog_def.h:84
NIMMsgLogStatus
Definition: nim_msglog_def.h:312
@ kNIMMsgLogStatusSent
已发送
Definition: nim_msglog_def.h:326
@ kNIMMsgLogStatusSendCancel
发送取消
Definition: nim_msglog_def.h:332
@ kNIMMsgLogStatusRead
收到消息,已读
Definition: nim_msglog_def.h:318
@ kNIMMsgLogStatusUnread
收到消息,未读
Definition: nim_msglog_def.h:316
@ kNIMMsgLogStatusReceipt
对方已读发送的内容
Definition: nim_msglog_def.h:328
@ kNIMMsgLogStatusDeleted
已删
Definition: nim_msglog_def.h:320
@ kNIMMsgLogStatusSending
发送中
Definition: nim_msglog_def.h:322
@ kNIMMsgLogStatusNone
默认,不能当查询条件,意义太多
Definition: nim_msglog_def.h:314
@ kNIMMsgLogStatusSendFailed
发送失败
Definition: nim_msglog_def.h:324
@ kNIMMsgLogStatusDraft
草稿
Definition: nim_msglog_def.h:330
@ kNIMMsgLogStatusRefused
被对方拒绝,比如被对方加入黑名单等等
Definition: nim_msglog_def.h:334
NIMMsglogQuerySource
Definition: nim_msglog_def.h:261
@ kNIMMsglogQuerySourceLocal
本地查询
Definition: nim_msglog_def.h:263
@ kNIMMsglogQuerySourceServer
云端查询
Definition: nim_msglog_def.h:265
static const char * kNIMDELMSGSelfNotifyKeyEXT
string 用户自定义数据
Definition: nim_msglog_def.h:742
void(* nim_msglog_delete_message_self_res_cb_func)(int res_code, const void *user_data)
Definition: nim_msglog_def.h:76
static const char * kNIMNotificationIdNetCallFromKey
string 发起者帐号
Definition: nim_msglog_def.h:724
NIMMessageType
Definition: nim_msglog_def.h:269
@ kNIMMessageTypeCustom
自定义消息
Definition: nim_msglog_def.h:291
@ kNIMMessageTypeAudio
声音类型消息
Definition: nim_msglog_def.h:275
@ kNIMMessageTypeUnknown
未知类型消息,本地使用,发送时勿使用,作为默认值
Definition: nim_msglog_def.h:294
@ kNIMMessageTypeVideo
视频类型消息
Definition: nim_msglog_def.h:277
@ kNIMMessageTypeTips
提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段
Definition: nim_msglog_def.h:285
@ kNIMMessageTypeG2NetCall
G2话单消息
Definition: nim_msglog_def.h:289
@ kNIMMessageTypeImage
图片类型消息
Definition: nim_msglog_def.h:273
@ kNIMMessageTypeFile
文件类型消息
Definition: nim_msglog_def.h:283
@ kNIMMessageTypeRobot
波特机器人消息
Definition: nim_msglog_def.h:287
@ kNIMMessageTypeText
文本类型消息
Definition: nim_msglog_def.h:271
@ kNIMMessageTypeLocation
位置类型消息
Definition: nim_msglog_def.h:279
@ kNIMMessageTypeNotification
系统类型通知(包括入群出群通知等) NIMNotificationId
Definition: nim_msglog_def.h:281
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:203
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:51
static const char * kNIMMsglogQueryJsonExtensionKeyEndTime
int64_t,查询消息的截止时间,如果direction为kForward,则截止时间应小于anchor_msg_time,否则大于anchor_msg_time,...
Definition: nim_msglog_def.h:588
static const char * kNIMDELMSGSelfNotifyKeyMsgClientID
string 消息ID
Definition: nim_msglog_def.h:740
static const char * kNIMMsglogJsonExtKeyNeedAutoDownloadAttachment
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:595
static const char * kNIMNotificationKeyDataId
string
Definition: nim_msglog_def.h:693
static const char * kNIMNotificationKeyTeamMember
string, team_member_property 群组成员信息 Json Keys
Definition: nim_msglog_def.h:701
NIMMsgLogSubStatus
Definition: nim_msglog_def.h:434
@ kNIMMsgLogSubStatusNotPlaying
未播放
Definition: nim_msglog_def.h:439
@ kNIMMsgLogSubStatusNone
默认状态
Definition: nim_msglog_def.h:436
@ kNIMMsgLogSubStatusPlayed
已播放
Definition: nim_msglog_def.h:441
static const char * kNIMNotificationKeyUserNameCards
json string array, 操作者和被操作者双方的 用户名片 Json Keys
Definition: nim_msglog_def.h:703
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:97
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:147
static const char * kNIMNotificationKeyId
int, 见NIMNotificationId
Definition: nim_msglog_def.h:685
NIMMessageFeature
Definition: nim_msglog_def.h:298
@ kNIMMessageFeatureRoamMsg
漫游消息
Definition: nim_msglog_def.h:304
@ kNIMMessageFeatureCustomizedMsg
透传消息
Definition: nim_msglog_def.h:308
@ kNIMMessageFeatureDefault
默认
Definition: nim_msglog_def.h:300
@ kNIMMessageFeatureSyncMsg
同步消息
Definition: nim_msglog_def.h:306
@ kNIMMessageFeatureLeaveMsg
离线消息
Definition: nim_msglog_def.h:302
NIMNotificationId
Definition: nim_msglog_def.h:338
@ kNIMNotificationIdLocalUpdateMemberProperty
本地操作更新群成员属性 {"team_member" : team_member_info}
Definition: nim_msglog_def.h:386
@ kNIMNotificationIdNetcallBill
话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}
Definition: nim_msglog_def.h:364
@ kNIMNotificationIdTeamUpdate
群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:346
@ kNIMNotificationIdLocalCreateTeam
本地操作创建群 {"ids" : ["a1", "a2"]}
Definition: nim_msglog_def.h:378
@ kNIMNotificationIdSuperTeamLeave
退出超大群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:414
@ kNIMNotificationIdTeamMemberChanged
群成员变更{"team_member" : team_member_info}
Definition: nim_msglog_def.h:372
@ kNIMNotificationIdLocalMuteMember
本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:394
@ kNIMNotificationIdSuperTeamMuteMember
超大群禁言/解禁群成员,{"uinfos":["uinfo1", "uinfo2"],“tinfo”:tinfo,"id":"a1","mute":1-禁言,0-解禁}
Definition: nim_msglog_def.h:426
@ kNIMNotificationIdLocalRejectApply
本地操作拒绝申请 {"id":"a1"}
Definition: nim_msglog_def.h:382
@ kNIMNotificationIdSuperTeamApplyPass
超大群申请加入成功,{"tinfo":tinfo,"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:428
@ kNIMNotificationIdSuperTeamOwnerTransfer
超大群移交群主,{"id":"a1","uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:420
@ kNIMNotificationIdLocalGetTeamInfo
本地操作获取群信息 {"team_info":team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:390
@ kNIMNotificationIdTeamMuteMember
禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1",...
Definition: nim_msglog_def.h:360
@ kNIMNotificationIdSuperTeamDismiss
超大群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:418
@ kNIMNotificationIdSuperTeamAddManager
超大群增加管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:422
@ kNIMNotificationIdTeamKick
普通群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:342
@ kNIMNotificationIdLocalNetcallCanceled
未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:408
@ kNIMNotificationIdTeamSyncCreate
创建群 {"team_info" : team_info} // 群组信息(Keys SEE MORE nim_team_def.h 『群组信息 Json Keys』)
Definition: nim_msglog_def.h:370
@ kNIMNotificationIdTeamApplyPass
高级群申请加入成功,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:350
@ kNIMNotificationIdLocalGetTeamMsgUnreadList
获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}
Definition: nim_msglog_def.h:400
@ kNIMNotificationIdSuperTeamInviteAccept
超大群接受邀请进群,{"tinfo":tinfo,"id":"a1"}
Definition: nim_msglog_def.h:430
@ kNIMNotificationIdLocalMute
本地操作对群禁言 {}
Definition: nim_msglog_def.h:396
@ kNIMNotificationIdTeamDismiss
群解散,{"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:348
@ kNIMNotificationIdTeamInvite
普通群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:340
@ kNIMNotificationIdSuperTeamInvite
超大群拉人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:410
@ kNIMNotificationIdLocalApplyTeam
本地操作申请加入群 {}
Definition: nim_msglog_def.h:380
@ kNIMNotificationIdTeamOwnerTransfer
高级群移交群主,{"id":"a1", "leave" : bool,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:352
@ kNIMNotificationIdNetcallReject
拒绝电话,{"calltype":1,"channel":6144978055925334000,"from":"id1","ids":["id1"],"time":139323423424}
Definition: nim_msglog_def.h:366
@ kNIMNotificationIdTeamInviteAccept
高级群接受邀请进群,{"id":"a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:358
@ kNIMNotificationIdLocalNetcallNoResponse
无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:406
@ kNIMNotificationIdLocalGetTeamMsgUnreadCount
获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}
Definition: nim_msglog_def.h:398
@ kNIMNotificationIdLocalRejectInvite
本地操作拒绝邀请 {"id":"a1"}
Definition: nim_msglog_def.h:384
@ kNIMNotificationIdLocalNetcallReject
拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:404
@ kNIMNotificationIdSuperTeamKick
超大群踢人,{"ids":["a1", "a2"],"user_namecards":["namecard1", "namecard2"], "attach" : ""}
Definition: nim_msglog_def.h:412
@ kNIMNotificationIdNetcallMiss
未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],...
Definition: nim_msglog_def.h:362
@ kNIMNotificationIdTeamSyncUpdateMemberProperty
同步通知:修改群成员属性(可能是自己的或别人的)
Definition: nim_msglog_def.h:374
@ kNIMNotificationIdLocalGetTeamList
本地操作获取群成员信息结束
Definition: nim_msglog_def.h:392
@ kNIMNotificationIdTeamAddManager
增加管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:354
@ kNIMNotificationIdTeamLeave
退出群,{"id" : "a1","user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:344
@ kNIMNotificationIdLocalUpdateOtherNick
本地操作更新他人nickname {}
Definition: nim_msglog_def.h:388
@ kNIMNotificationIdSuperTeamUpdate
超大群群信息更新,{"team_info":team_info,"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:416
@ kNIMNotificationIdSuperTeamRemoveManager
超大群删除管理员,{"ids":["a1","a2"],"uinfos":["uinfo1", "uinfo2"]}
Definition: nim_msglog_def.h:424
@ kNIMNotificationIdTeamRemoveManager
删除管理员,{"ids":["a1","a2"],"user_namecards":["namecard1", "namecard2"]}
Definition: nim_msglog_def.h:356
void(* nim_msglog_modify_res_cb_func)(int res_code, const char *json_extension, const void *user_data)
Definition: nim_msglog_def.h:168
static const char * kNIMNotificationKeyDataMute
int
Definition: nim_msglog_def.h:697
static const char * kNIMTEAMMSGACKREADSUCCESSIDSKEY
string json array 群组消息标记已读成功的msg id list key
Definition: nim_msglog_def.h:749
static const char * kNIMMsglogStatusChangedKeyMsgTimetag
临界的消息的时间戳
Definition: nim_msglog_def.h:238
static const char * kNIMMsglogQueryJsonExtensionKeyReverse
bool,返回的消息历史排序正序(false)/逆序(true),默认为false
Definition: nim_msglog_def.h:586
static const char * kNIMMsglogJsonExtKeyExcludeMsgType
array 绑定的消息要排除的类型,始终排除掉未知类型(1000)消息
Definition: nim_msglog_def.h:606
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:225
static const char * kNIMNotificationIdNetCallDurationKey
int64 通话时长 单位秒
Definition: nim_msglog_def.h:722
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:66
static const char * kNIMDELMSGSelfNotifyKeySessionID
string, 会话 ID
Definition: nim_msglog_def.h:738
static const char * kNIMMsglogStatusChangedKeyStatus
变更后的状态
Definition: nim_msglog_def.h:240
NIMMsglogSearchDirection
Definition: nim_msglog_def.h:610
@ kBackward
以时间点为准向后搜索
Definition: nim_msglog_def.h:614
@ kForward
以时间点为准向前搜索
Definition: nim_msglog_def.h:612
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:178
static const char * kNIMNotificationKeyDataLeave
bool
Definition: nim_msglog_def.h:695
NIMMsgLogQueryRange
Definition: nim_msglog_def.h:618
@ kNIMMsgLogQueryRangeP2P
指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)
Definition: nim_msglog_def.h:620
@ kNIMMsgLogQueryRangeTeam
指定的群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:622
@ kNIMMsgLogQueryRangeSuperTeam
指定的超大群组(注意:暂不支持指定多个群组的检索!)
Definition: nim_msglog_def.h:624
@ kNIMMsgLogQueryRangeUnknown
未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)
Definition: nim_msglog_def.h:634
@ kNIMMsgLogQueryRangeAllSuperTeam
所有超大群组
Definition: nim_msglog_def.h:632
@ kNIMMsgLogQueryRangeAll
全部
Definition: nim_msglog_def.h:626
@ kNIMMsgLogQueryRangeAllP2P
所有个人会话
Definition: nim_msglog_def.h:628
@ kNIMMsgLogQueryRangeAllTeam
所有群组
Definition: nim_msglog_def.h:630
static const char * kNIMNotificationIdNetCallIdsKey
StrArray 帐号
Definition: nim_msglog_def.h:718
LogsBackupRemoteState
Definition: nim_msglog_def.h:452
@ LogsBackupRemoteState_End
定义结束
Definition: nim_msglog_def.h:489
@ LogsBackupRemoteState_IMP_SyncFromSrvError
查询备份失败一般是网络错误
Definition: nim_msglog_def.h:465
@ LogsBackupRemoteState_IMP_RAWError
解密/解压出来的源文件格式错误
Definition: nim_msglog_def.h:469
@ LogsBackupRemoteState_IMP_DownloadBackupFailed
下载备份文件出错
Definition: nim_msglog_def.h:467
@ LogsBackupRemoteState_Done
完成
Definition: nim_msglog_def.h:485
@ LogsBackupRemoteState_IMP_LocalDBFailed
导入本地DB出错
Definition: nim_msglog_def.h:473
@ LogsBackupRemoteState_EXP_RAWError
导出到源文件失败
Definition: nim_msglog_def.h:478
@ LogsBackupRemoteState_UserCanceled
已取消
Definition: nim_msglog_def.h:458
@ LogsBackupRemoteState_SDKError
SDK 已出错
Definition: nim_msglog_def.h:460
@ LogsBackupRemoteState_Done_NoLogs
完成,但未导出任何记录
Definition: nim_msglog_def.h:487
@ LogsBackupRemoteState_FinalState_Begin
是否已是最终状态的一个标识,可以判断state是否为终态(state >= LogsBackupRemoteState_FinalState_Begin)
Definition: nim_msglog_def.h:491
@ LogsBackupRemoteState_IMP_NoBackup
没有备份文件
Definition: nim_msglog_def.h:463
@ LogsBackupRemoteState_EXP_LocalDBFailed
打开本地DB失败
Definition: nim_msglog_def.h:476
@ LogsBackupRemoteState_EXP_SyncToSrvError
同步到服务器出错一般是网络错误
Definition: nim_msglog_def.h:482
@ LogsBackupRemoteState_EXP_UploadBackupFailed
上传备份文件出错
Definition: nim_msglog_def.h:480
@ LogsBackupRemoteState_Begin
定义开始
Definition: nim_msglog_def.h:454
@ LogsBackupRemoteState_IMP_ParseRAWError
解析源文件格式错误
Definition: nim_msglog_def.h:471
@ LogsBackupRemoteState_UnDef
未定义
Definition: nim_msglog_def.h:456
static const char * kNIMNotificationKeyDataIds
string array
Definition: nim_msglog_def.h:689
static const char * kNIMMsglogQueryKeyCount
int, 查询得到的数量
Definition: nim_msglog_def.h:252
static const char * kNIMMsglogStatusChangedKeyTalkID
会话ID
Definition: nim_msglog_def.h:236
static const char * kNIMMsglogJsonExtKeyComposeLastMsg
bool 插入新消息若需要更新会话数据,指定是否需要绑定历史消息中的最后一条消息。true:需要,false:不需要
Definition: nim_msglog_def.h:604
NIMFullTextSearchRule
全文检索排序规则
Definition: nim_msglog_def.h:495
static const char * kNIMMsglogQueryKeySource
NIMMsglogQuerySource, 查询结果来源
Definition: nim_msglog_def.h:254
static const char * kNIMNotificationKeyData
json object 包含以下5种可能的数据结构
Definition: nim_msglog_def.h:687
void(* nim_msglog_delete_history_online_res_cb_func)(int res_code, const char *accid, const void *user_data)
Definition: nim_msglog_def.h:35
static const char * kNIMTEAMMSGACKREADSIGNOREDIDSKEY
string json array 群组消息标记已读忽略的msg id list key(消息不需要标记,或者已经标记过)
Definition: nim_msglog_def.h:753
static const char * kNIMNotificationKeyDataInvalidIds
string array
Definition: nim_msglog_def.h:691
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:137
static const char * kNIMNotificationIdNetCallTimeKey
int64 时间 单位毫秒
Definition: nim_msglog_def.h:716
最近会话列表 接口相关的常量函数等定义头文件
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 公用头文件
单向删除某条消息参数
Definition: nim_msglog_def.h:757
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:765
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:759
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:769
删除与某一会话的历史记录推送数据定义
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:498
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:540
char * encrypt_key_
加密秘钥
Definition: nim_msglog_def.h:513
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:543
void * user_data_
APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Definition: nim_msglog_def.h:577
云端查询某条消息参数一般用在thread聊天场景中
Definition: nim_msglog_def.h:775
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1,超大群5 (nim_msglog_def.h)
Definition: nim_msglog_def.h:777
int64_t server_id
int64_t 消息的服务端id
Definition: nim_msglog_def.h:783
int64_t time
int64_t 消息时间戳
Definition: nim_msglog_def.h:787
根据关键字村云端查询消息记录的参数定义
Definition: nim_msglog_def.h:664
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:672
int limit
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:668
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:670
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:674
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:666
从云端导入消息记录参数定义
Definition: nim_msglog_def.h:638
int limit_count_
int 本次查询的消息条数上限(最多100条)
Definition: nim_msglog_def.h:642
int64_t end_msg_id_
int64_t 结束查询的最后一条消息的server_msg_id(不包含在查询结果中)
Definition: nim_msglog_def.h:648
int64_t end_time_
int64_t 结束时间点,单位:毫秒
Definition: nim_msglog_def.h:646
enum NIMMessageType * msg_type_list_
list 要获取或排除掉的消息类型 由 is_exclusion_type_ 参数决定
Definition: nim_msglog_def.h:656
bool need_save_to_local_
bool 将在线查询结果保存到本地,false: 不保存
Definition: nim_msglog_def.h:652
int type_list_length_
int type list 长度
Definition: nim_msglog_def.h:658
bool reverse_
bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
Definition: nim_msglog_def.h:650
int64_t from_time_
int64_t 起始时间点,单位:毫秒
Definition: nim_msglog_def.h:644
enum NIMSessionType to_type_
enum 会话类型,双人0,群组1 (nim_msglog_def.h)
Definition: nim_msglog_def.h:640
bool is_exclusion_type_
bool true : 获取除msg_type_list_中指定的所有类型消息 ,false :只获取 msg_type_list_ 中指定的类型的消息
Definition: nim_msglog_def.h:660
bool auto_download_attachment_
bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
Definition: nim_msglog_def.h:654
云端查询thread聊天历史参数
Definition: nim_msglog_def.h:791
int32_t limit
int32_t 查询条数限制 缺省100
Definition: nim_msglog_def.h:799
int64_t to_time
int64_t 结束时间 缺省0
Definition: nim_msglog_def.h:795
int32_t reverse
int64_t 排序 缺省0 false
Definition: nim_msglog_def.h:801
int64_t from_time
int64_t 起始时间 缺省0
Definition: nim_msglog_def.h:793
int64_t exclude_msg_id
int64_t 截至消息的服务端id,不包含在查询结果中 缺省0
Definition: nim_msglog_def.h:797