NIM SDK API  8.5.0
nim_cpp_msglog.h
Go to the documentation of this file.
1 
7 #ifndef _NIM_SDK_CPP_MSGLOG_H_
8 #define _NIM_SDK_CPP_MSGLOG_H_
9 
10 #include <functional>
11 #include <string>
14 #include "nim_cpp_wrapper/nim_sdk_cpp_wrapper.h"
19 namespace nim {
20 
24 class NIM_SDK_CPPWRAPPER_DLL_API MsgLog {
25 public:
26  typedef std::function<void(NIMResCode res_code, const std::string& id, nim::NIMSessionType to_type, const QueryMsglogResult& result)>
28  typedef std::function<void(NIMResCode res_code, const std::string& msg_id, const IMMessage& msg)>
30  typedef std::function<void(NIMResCode res_code, const std::string& uid, nim::NIMSessionType to_type)>
35  typedef std::function<void(NIMResCode res_code, const std::string& msg_id)> ModifySingleMsglogCallback;
41  typedef std::function<void(const DeleteMsglogSelfNotifyParam&)> DeleteMsglogSelfNotifyCallback;
43  typedef std::function<void(NIMResCode res_code)> DBFunctionCallback;
44  typedef std::function<void(NIMResCode res_code)> DeleteMsglogSelfCallback;
50  typedef std::function<void(int64_t imported_count, int64_t total_count)> ImportDbPrgCallback;
52  typedef std::function<void(const MessageStatusChangedResult&)> MessageStatusChangedCallback;
54  typedef std::function<void(const NIMResCode, const std::string&)>
56  typedef std::function<void(const NIMResCode, const std::string&, nim::NIMSessionType, uint64_t, const std::string&)>
58  typedef std::function<void(const std::list<NIMDeleteSessionHistoryMessagesNotifyInfo>& info_list)>
60  typedef std::function<void(const NIMResCode res_code, const std::string& client_id, bool is_root, int reply_count)>
62  typedef std::function<void(const NIMResCode res_code, const std::string& client_id, const IMMessage& msg)>
64  typedef std::function<
65  void(const NIMResCode res_code, const IMMessage& root_msg, int total, uint64_t last_msg_time, const std::list<IMMessage>& msg_list)>
69  std::function<void(nim::NIMResCode res_code, const QueryMsglogResult& message_list)>;
71  class NIM_SDK_CPPWRAPPER_DLL_API AllMessageTypeList {
72  public:
74  std::vector<nim::NIMMessageType> ExclusionType(const std::vector<nim::NIMMessageType>& exclusion_type_list) const;
75 
76  private: // judge
77  std::vector<nim::NIMMessageType> list_;
78  };
82  class NIM_SDK_CPPWRAPPER_DLL_API QueryMsgOnlineAsyncParam {
83  friend class MsgLog;
84 
85  public:
87  std::string id_;
88  nim::NIMSessionType to_type_;
90  int64_t from_time_;
91  int64_t end_time_;
92  int64_t end_msg_id_;
93  bool reverse_;
96  std::vector<nim::NIMMessageType> msg_type_list_;
98  private:
99  bool FormatParam();
100 
101  private:
102  const static AllMessageTypeList AllMsgTypeList;
103  std::string json_extension_;
104  };
105 
109  class NIM_SDK_CPPWRAPPER_DLL_API QueryMsgByKeywordOnlineParam {
110  friend class MsgLog;
111 
112  public:
114  std::string id_;
115  std::string keyword_;
116  nim::NIMSessionType to_type_;
118  int64_t from_time_;
119  int64_t end_time_;
120  bool reverse_;
121  private:
122  bool FormatParam() { return true; };
123 
124  private:
125  std::string json_extension_;
126  };
130  class NIM_SDK_CPPWRAPPER_DLL_API QueryMsgAsyncParam {
131  public:
132  NIMSessionType to_type_;
133  std::string from_account;
134  std::string to_account;
135  int64_t server_id;
136  std::string client_id;
137  int64_t time;
138  };
139 
143  class NIM_SDK_CPPWRAPPER_DLL_API QueryThreadHistoryMsgAsyncParam {
144  public:
145  int64_t from_time;
146  int64_t to_time;
147  int64_t exclude_msg_id;
148  int32_t limit;
149  int32_t reverse;
150  };
154  class NIM_SDK_CPPWRAPPER_DLL_API QueryMsgByOptionsAsyncParam {
155  public:
157  : limit_count_(100)
158  , reverse_(false) {}
159  NIMMsgLogQueryRange query_range_;
160  std::list<std::string> ids_;
162  int64_t from_time_;
163  int64_t end_time_;
164  std::string end_client_msg_id_;
165  bool reverse_;
166  NIMMessageType msg_type_;
167  int32_t msg_sub_type_;
168  std::string
172  public:
173  std::string ToJsonString() const;
174  };
175 
176  class NIM_SDK_CPPWRAPPER_DLL_API FullTextSearchOnlineAsyncParam {
177  public:
179  std::string keyword_;
181  uint64_t from_time_;
183  uint64_t to_time_;
185  uint32_t session_limit_;
187  uint32_t msglog_limit_;
189  NIMFullTextSearchOnlineOrderType order_by_;
191  std::list<std::string> p2p_filter_list_;
193  std::list<std::string> team_filter_list_;
195  std::list<std::string> sender_filter_list_;
197  : from_time_(0)
198  , to_time_(0)
199  , session_limit_(10)
200  , msglog_limit_(10)
201  , order_by_(kNIMFullTextSearchOrderByAsc) {}
202  };
203 
208  static void UnregMsglogCb();
214  static void RegDeleteMsglogSelfNotify(const DeleteMsglogSelfNotifyCallback& cb);
215 
221  static void RegDeleteHistoryMessagesNotify(const DeleteHistoryOnLineNotifyCallback& cb);
222 
232  static bool QueryMsgByIDAysnc(const std::string& client_msg_id, const QuerySingleMsgCallback& cb, const std::string& json_extension = "");
233 
251  static bool QueryMsgAsync(const std::string& account_id,
252  nim::NIMSessionType to_type,
253  int limit_count,
254  int64_t anchor_msg_time,
255  const QueryMsgCallback& cb,
256  const std::string& json_extension = "");
257 
267  static bool QueryMsgOnlineAsync(const QueryMsgOnlineAsyncParam& param, const QueryMsgCallback& cb);
286  static bool QueryMsgOnlineAsync(const std::string& id,
287  nim::NIMSessionType to_type,
288  int limit_count,
289  int64_t from_time,
290  int64_t end_time,
291  int64_t end_msg_id,
292  bool reverse,
293  bool need_save_to_local,
294  const QueryMsgCallback& cb,
295  const std::string& json_extension = "");
296 
306  static bool QueryMsgByKeywordOnlineAsync(const MsgLog::QueryMsgByKeywordOnlineParam& param, const QueryMsgCallback& cb);
307 
332  static bool QueryMsgOfSpecifiedTypeInASessionAsync(nim::NIMSessionType to_type,
333  const std::string& id,
334  int limit_count,
335  int64_t from_time,
336  int64_t end_time,
337  const std::string& end_client_msg_id,
338  bool reverse,
339  std::list<NIMMessageType> msg_type,
340  const QueryMsgCallback& cb,
341  const std::string& json_extension = "");
342 
371  static bool QueryMsgByOptionsAsync(NIMMsgLogQueryRange query_range,
372  const std::list<std::string>& ids,
373  int limit_count,
374  int64_t from_time,
375  int64_t end_time,
376  const std::string& end_client_msg_id,
377  bool reverse,
378  NIMMessageType msg_type,
379  const std::string& search_content,
380  const QueryMsgCallback& cb,
381  const std::string& json_extension = "");
382 
391  static bool QueryMsgByOptionsAsyncEx(const QueryMsgByOptionsAsyncParam& param, const QueryMsgCallback& cb);
392 
406  static bool BatchStatusReadAsync(const std::string& account_id,
407  nim::NIMSessionType to_type,
408  const BatchStatusReadCallback& cb,
409  const std::string& json_extension = "");
410 
422  static bool BatchStatusDeleteAsync(const std::string& account_id,
423  nim::NIMSessionType to_type,
424  const BatchStatusDeleteCallback& cb,
425  const std::string& json_extension = "");
426 
439  static bool BatchStatusDeleteAsyncEx(const std::string& account_id,
440  nim::NIMSessionType to_type,
441  bool revert_by_query_online,
442  const BatchStatusDeleteCallback& cb,
443  const std::string& json_extension = "");
444 
456  static bool SetStatusAsync(const std::string& msg_id,
457  nim::NIMMsgLogStatus msglog_status,
458  const SetStatusCallback& cb,
459  const std::string& json_extension = "");
460 
472  static bool SetSubStatusAsync(const std::string& msg_id,
473  nim::NIMMsgLogSubStatus msglog_sub_status,
474  const SetSubStatusCallback& cb,
475  const std::string& json_extension = "");
476 
489  static bool WriteMsglogToLocalAsync(const std::string& talk_id,
490  const IMMessage& msg,
491  bool need_update_session,
492  const WriteMsglogCallback& cb,
493  const std::string& json_extension = "");
494 
513  static bool WriteMsglogToLocalAsyncEx(const std::string& talk_id,
514  const IMMessage& msg,
515  bool need_update_session,
516  bool compose_last_msg,
517  const std::list<NIMMessageType>& exclude_msg_type,
518  const WriteMsglogCallback& cb);
519 
532  static bool DeleteBySessionTypeAsync(bool delete_sessions,
533  NIMSessionType to_type,
534  const DeleteBySessionTypeCallback& cb,
535  const std::string& json_extension = "");
536 
550  static bool DeleteBySessionTypeAsyncEx(bool delete_sessions,
551  NIMSessionType to_type,
552  bool revert_by_query_online,
553  const DeleteBySessionTypeCallback& cb,
554  const std::string& json_extension = "");
555 
568  static bool DeleteAsync(const std::string& session_id,
569  NIMSessionType to_type,
570  const std::string& msg_id,
571  const DeleteCallback& cb,
572  const std::string& json_extension = "");
573 
585  static bool DeleteAllAsync(bool delete_sessions, const DeleteAllCallback& cb, const std::string& json_extension = "");
586 
600  static bool DeleteAllAsyncEx(bool delete_sessions,
601  bool revert_by_query_online,
602  const DeleteAllCallback& cb,
603  const std::string& json_extension = "");
604 
618  static bool DeleteMsgByTimeAsync(const std::string& session_id,
619  NIMSessionType to_type,
620  uint64_t timestamp1,
621  uint64_t timestamp2,
622  const DeleteMsgByTimeCallback& cb,
623  const std::string& json_extension = "");
624 
639  static bool DeleteMsgByTimeAsyncEx(const std::string& session_id,
640  NIMSessionType to_type,
641  bool revert_by_query_online,
642  uint64_t timestamp1,
643  uint64_t timestamp2,
644  const DeleteMsgByTimeCallback& cb,
645  const std::string& json_extension = "");
646 
656  static bool ExportDbAsync(const std::string& dst_path, const DBFunctionCallback& cb, const std::string& json_extension = "");
657 
670  static bool ImportDbAsync(const std::string& src_path,
671  const DBFunctionCallback& cb,
672  const ImportDbPrgCallback& prg_cb,
673  const std::string& json_extension = "");
674 
685  static void SendReceiptAsync(const std::string& json_msg, const MessageStatusChangedCallback& cb);
686 
692  static bool QuerySentMessageBeReaded(const IMMessage& msg);
693 
699  static bool QueryReceivedMsgReceiptSent(const IMMessage& msg);
700 
708  static void RegMessageStatusChangedCb(const MessageStatusChangedCallback& cb, const std::string& json_extension = "");
709 
721  static bool UpdateLocalExtAsync(const std::string& msg_id,
722  const std::string& local_ext,
723  const UpdateLocalExtCallback& cb,
724  const std::string& json_extension = "");
729  static void UnregMsgologCb();
730 
739  static bool ReadAllAsync(const DBFunctionCallback& cb, const std::string& json_extension = "");
740 
746  static bool ExportBackupToRemote(const LogsBackupExportInfo& export_info);
747 
753  static bool ImportBackupFromRemote(const LogsBackupImportInfo& import_info);
754 
759  static void CancelImportBackupFromRemote();
764  static void CancelExportBackupToRemote();
765 
776  static void DeleteHistoryOnlineAsync(const std::string& accid,
777  bool delete_roaming,
778  const std::string& json_extension,
779  const DeleteHistoryOnLineAsyncCallback& cb);
780 
795  static void DeleteHistoryOnlineAsync(const std::string& accid,
796  nim::NIMSessionType to_type,
797  bool notify_self,
798  const std::string& ext,
799  const DeleteHistoryOnLineAsyncExCallback& cb);
800 
809  static void DeleteMessageSelfAsync(const IMMessage& msg, const std::string ext, const DeleteMsglogSelfCallback& cb);
810 
818  static void DeleteMessageSelfAsync(const std::list<std::tuple<IMMessage, std::string>>& msgs, const DeleteMsglogSelfCallback& cb);
819 
827  static void QueryMessageIsThreadRoot(const std::string msg_client_id, const QueryMessageIsThreadRootAsyncCallback& cb);
828 
836  static void QueryMessageOnline(const QueryMsgAsyncParam& param, const QueryMessageOnlineCallback& cb);
837 
845  static void QueryThreadHistoryMsg(const IMMessage& msg, const QueryThreadHistoryMsgAsyncParam& param, const QueryThreadHistoryMsgCallback& cb);
846 
854  static void FullTextSearchOnlineAsync(const FullTextSearchOnlineAsyncParam& param, const FullTextSearchOnlineAsyncCallback& cb);
855 };
856 } // namespace nim
857 
858 #endif //_NIM_SDK_CPP_MSGLOG_H_
nim::MsgLog::FullTextSearchOnlineAsyncCallback
std::function< void(nim::NIMResCode res_code, const QueryMsglogResult &message_list)> FullTextSearchOnlineAsyncCallback
Definition: nim_cpp_msglog.h:69
nim::MsgLog::QueryMsgOnlineAsyncParam::is_exclusion_type_
bool is_exclusion_type_
Definition: nim_cpp_msglog.h:97
nim::MsgLog::UpdateLocalExtCallback
ModifySingleMsglogCallback UpdateLocalExtCallback
Definition: nim_cpp_msglog.h:38
nim::MsgLog::QueryMsgOnlineAsyncParam::msg_type_list_
std::vector< nim::NIMMessageType > msg_type_list_
Definition: nim_cpp_msglog.h:96
nim::MsgLog::QueryMsgByOptionsAsyncParam::reverse_
bool reverse_
Definition: nim_cpp_msglog.h:165
nim::MsgLog::ModifySingleMsglogCallback
std::function< void(NIMResCode res_code, const std::string &msg_id)> ModifySingleMsglogCallback
Definition: nim_cpp_msglog.h:35
nim::MsgLog::QueryMessageIsThreadRootAsyncCallback
std::function< void(const NIMResCode res_code, const std::string &client_id, bool is_root, int reply_count)> QueryMessageIsThreadRootAsyncCallback
Definition: nim_cpp_msglog.h:61
nim::MsgLog::QueryMsgOnlineAsyncParam::to_type_
nim::NIMSessionType to_type_
Definition: nim_cpp_msglog.h:88
nim::MsgLog::QueryMessageOnlineCallback
std::function< void(const NIMResCode res_code, const std::string &client_id, const IMMessage &msg)> QueryMessageOnlineCallback
Definition: nim_cpp_msglog.h:63
nim::MsgLog::QueryThreadHistoryMsgAsyncParam
Definition: nim_cpp_msglog.h:143
nim::MsgLog::QueryMsgByOptionsAsyncParam::query_range_
NIMMsgLogQueryRange query_range_
Definition: nim_cpp_msglog.h:159
nim::MsgLog::QueryMsgByOptionsAsyncParam
Definition: nim_cpp_msglog.h:154
nim::MsgLog::QueryMsgByOptionsAsyncParam::from_time_
int64_t from_time_
Definition: nim_cpp_msglog.h:162
nim::MsgLog::QueryMsgAsyncParam::server_id
int64_t server_id
Definition: nim_cpp_msglog.h:135
nim::MsgLog::FullTextSearchOnlineAsyncParam::from_time_
uint64_t from_time_
查询的起始时间,0 为从最开始查询
Definition: nim_cpp_msglog.h:181
nim::MsgLog::QueryMsgOnlineAsyncParam::id_
std::string id_
Definition: nim_cpp_msglog.h:87
nim::MsgLog::QuerySingleMsgCallback
std::function< void(NIMResCode res_code, const std::string &msg_id, const IMMessage &msg)> QuerySingleMsgCallback
Definition: nim_cpp_msglog.h:29
nim::MsgLog::FullTextSearchOnlineAsyncParam::team_filter_list_
std::list< std::string > team_filter_list_
Team 群租会话过滤列表
Definition: nim_cpp_msglog.h:193
nim::MsgLog::QueryMsgByKeywordOnlineParam::id_
std::string id_
Definition: nim_cpp_msglog.h:114
nim::MsgLog::QueryThreadHistoryMsgAsyncParam::from_time
int64_t from_time
Definition: nim_cpp_msglog.h:145
nim::MsgLog::SetStatusCallback
ModifySingleMsglogCallback SetStatusCallback
Definition: nim_cpp_msglog.h:36
nim::MsgLog::FullTextSearchOnlineAsyncParam::order_by_
NIMFullTextSearchOnlineOrderType order_by_
设置排序规则
Definition: nim_cpp_msglog.h:189
nim::MsgLog::QueryMsgOnlineAsyncParam
Definition: nim_cpp_msglog.h:82
nim::MsgLog::QueryThreadHistoryMsgAsyncParam::reverse
int32_t reverse
Definition: nim_cpp_msglog.h:149
nim::MsgLog::QueryMsgByKeywordOnlineParam::end_time_
int64_t end_time_
Definition: nim_cpp_msglog.h:119
nim::MessageStatusChangedResult
发送消息已读回执
Definition: nim_msglog_helper.h:63
nim::MsgLog::QueryMsgByKeywordOnlineParam::to_type_
nim::NIMSessionType to_type_
Definition: nim_cpp_msglog.h:116
nim::MsgLog::FullTextSearchOnlineAsyncParam::p2p_filter_list_
std::list< std::string > p2p_filter_list_
P2P 会话过滤列表
Definition: nim_cpp_msglog.h:191
nim::MsgLog::FullTextSearchOnlineAsyncParam::keyword_
std::string keyword_
要搜索的关键字
Definition: nim_cpp_msglog.h:179
nim::MsgLog::FullTextSearchOnlineAsyncParam::sender_filter_list_
std::list< std::string > sender_filter_list_
暂不支持
Definition: nim_cpp_msglog.h:195
nim::MsgLog::DeleteMsgByTimeCallback
DBFunctionCallback DeleteMsgByTimeCallback
Definition: nim_cpp_msglog.h:48
nim::MsgLog::QueryMsgByKeywordOnlineParam
Definition: nim_cpp_msglog.h:109
nim::MsgLog::QueryMsgByOptionsAsyncParam::ids_
std::list< std::string > ids_
Definition: nim_cpp_msglog.h:160
nim_talk_helper.h
Talk 辅助方法和数据结构定义
nim::MsgLog::QueryMsgByKeywordOnlineParam::from_time_
int64_t from_time_
Definition: nim_cpp_msglog.h:118
nim::MsgLog::QueryMsgAsyncParam::from_account
std::string from_account
Definition: nim_cpp_msglog.h:133
nim::MsgLog::QueryThreadHistoryMsgCallback
std::function< void(const NIMResCode res_code, const IMMessage &root_msg, int total, uint64_t last_msg_time, const std::list< IMMessage > &msg_list)> QueryThreadHistoryMsgCallback
Definition: nim_cpp_msglog.h:66
nim::MsgLog::QueryMsgCallback
std::function< void(NIMResCode res_code, const std::string &id, nim::NIMSessionType to_type, const QueryMsglogResult &result)> QueryMsgCallback
Definition: nim_cpp_msglog.h:27
nim::MsgLog::QueryMsgByKeywordOnlineParam::reverse_
bool reverse_
Definition: nim_cpp_msglog.h:120
nim::MsgLog::BatchStatusReadCallback
ModifyMultipleMsglogCallback BatchStatusReadCallback
Definition: nim_cpp_msglog.h:32
nim::MsgLog::QueryMsgByKeywordOnlineParam::keyword_
std::string keyword_
Definition: nim_cpp_msglog.h:115
nim::MsgLog::DeleteAllCallback
DBFunctionCallback DeleteAllCallback
Definition: nim_cpp_msglog.h:46
nim::MsgLog::QueryMsgOnlineAsyncParam::end_msg_id_
int64_t end_msg_id_
Definition: nim_cpp_msglog.h:92
nim::MsgLog::DeleteBySessionTypeCallback
ModifyMultipleMsglogCallback DeleteBySessionTypeCallback
Definition: nim_cpp_msglog.h:34
nim::MsgLog::QueryMsgAsyncParam
Definition: nim_cpp_msglog.h:130
nim::MsgLog::QueryMsgByOptionsAsyncParam::limit_count_
int limit_count_
Definition: nim_cpp_msglog.h:161
nim::MsgLog::BatchStatusDeleteCallback
ModifyMultipleMsglogCallback BatchStatusDeleteCallback
Definition: nim_cpp_msglog.h:33
nim
namespace nim
nim::MsgLog::QueryMsgOnlineAsyncParam::reverse_
bool reverse_
Definition: nim_cpp_msglog.h:93
nim::LogsBackupImportInfo
从云端导入消息记录参数定义
Definition: nim_msglog_helper.h:158
nim::MsgLog::ImportDbPrgCallback
std::function< void(int64_t imported_count, int64_t total_count)> ImportDbPrgCallback
Definition: nim_cpp_msglog.h:50
nim::MsgLog::QueryMsgAsyncParam::to_account
std::string to_account
Definition: nim_cpp_msglog.h:134
nim::LogsBackupExportInfo
导出消息记录到云端参数定义
Definition: nim_msglog_helper.h:84
nim::MsgLog::QueryMsgOnlineAsyncParam::from_time_
int64_t from_time_
Definition: nim_cpp_msglog.h:90
nim::MsgLog
NIM SDK提供的消息历史接口
Definition: nim_cpp_msglog.h:24
nim_msglog_helper.h
msglog 辅助方法和数据结构定义
nim::MsgLog::FullTextSearchOnlineAsyncParam
Definition: nim_cpp_msglog.h:176
nim::MsgLog::DeleteHistoryOnLineAsyncCallback
std::function< void(const NIMResCode, const std::string &)> DeleteHistoryOnLineAsyncCallback
Definition: nim_cpp_msglog.h:55
nim::MsgLog::FullTextSearchOnlineAsyncParam::to_time_
uint64_t to_time_
查询的结束时间
Definition: nim_cpp_msglog.h:183
nim::MsgLog::DeleteCallback
ModifySingleMsglogCallback DeleteCallback
Definition: nim_cpp_msglog.h:40
nim::MsgLog::QueryThreadHistoryMsgAsyncParam::limit
int32_t limit
Definition: nim_cpp_msglog.h:148
nim::MsgLog::QueryMsgOnlineAsyncParam::end_time_
int64_t end_time_
Definition: nim_cpp_msglog.h:91
nim::MsgLog::DBFunctionCallback
std::function< void(NIMResCode res_code)> DBFunctionCallback
Definition: nim_cpp_msglog.h:43
nim::MsgLog::SetSubStatusCallback
ModifySingleMsglogCallback SetSubStatusCallback
Definition: nim_cpp_msglog.h:37
nim::MsgLog::DeleteMsglogSelfCallback
std::function< void(NIMResCode res_code)> DeleteMsglogSelfCallback
Definition: nim_cpp_msglog.h:44
nim::MsgLog::QueryMsgOnlineAsyncParam::limit_count_
int limit_count_
Definition: nim_cpp_msglog.h:89
nim::MsgLog::QueryMsgByOptionsAsyncParam::msg_sub_type_
int32_t msg_sub_type_
Definition: nim_cpp_msglog.h:167
nim::MsgLog::QueryThreadHistoryMsgAsyncParam::to_time
int64_t to_time
Definition: nim_cpp_msglog.h:146
nim::MsgLog::MessageStatusChangedCallback
std::function< void(const MessageStatusChangedResult &)> MessageStatusChangedCallback
Definition: nim_cpp_msglog.h:52
nim::MsgLog::QueryMsgByOptionsAsyncParam::msg_type_
NIMMessageType msg_type_
Definition: nim_cpp_msglog.h:166
nim::MsgLog::QueryMsgAsyncParam::to_type_
NIMSessionType to_type_
Definition: nim_cpp_msglog.h:132
nim::MsgLog::QueryMsgAsyncParam::client_id
std::string client_id
Definition: nim_cpp_msglog.h:136
nim::MsgLog::QueryMsgByOptionsAsyncParam::end_time_
int64_t end_time_
Definition: nim_cpp_msglog.h:163
nim::MsgLog::FullTextSearchOnlineAsyncParam::session_limit_
uint32_t session_limit_
限制会话的返回数量
Definition: nim_cpp_msglog.h:185
nim::MsgLog::QueryMsgByOptionsAsyncParam::search_content_
std::string search_content_
Definition: nim_cpp_msglog.h:169
nim::MsgLog::DeleteMsglogSelfNotifyCallback
std::function< void(const DeleteMsglogSelfNotifyParam &)> DeleteMsglogSelfNotifyCallback
Definition: nim_cpp_msglog.h:41
nim::MsgLog::DeleteHistoryOnLineNotifyCallback
std::function< void(const std::list< NIMDeleteSessionHistoryMessagesNotifyInfo > &info_list)> DeleteHistoryOnLineNotifyCallback
Definition: nim_cpp_msglog.h:59
nim::QueryMsglogResult
查询到消息历史结果
Definition: nim_msglog_helper.h:22
nim::MsgLog::QueryMsgOnlineAsyncParam::auto_download_attachment_
bool auto_download_attachment_
Definition: nim_cpp_msglog.h:95
nim::MsgLog::AllMessageTypeList
Definition: nim_cpp_msglog.h:71
nim::DeleteMsglogSelfNotifyParam
单向删除消息记录回调参数
Definition: nim_msglog_helper.h:48
nim::MsgLog::QueryMsgOnlineAsyncParam::need_save_to_local_
bool need_save_to_local_
Definition: nim_cpp_msglog.h:94
nim::MsgLog::QueryMsgByKeywordOnlineParam::limit_count_
int limit_count_
Definition: nim_cpp_msglog.h:117
nim::MsgLog::QueryThreadHistoryMsgAsyncParam::exclude_msg_id
int64_t exclude_msg_id
Definition: nim_cpp_msglog.h:147
nim::MsgLog::WriteMsglogCallback
ModifySingleMsglogCallback WriteMsglogCallback
Definition: nim_cpp_msglog.h:39
nim::IMMessage
Definition: nim_talk_helper.h:232
nim::MsgLog::ModifyMultipleMsglogCallback
std::function< void(NIMResCode res_code, const std::string &uid, nim::NIMSessionType to_type)> ModifyMultipleMsglogCallback
Definition: nim_cpp_msglog.h:31
nim::MsgLog::QueryMsgByOptionsAsyncParam::end_client_msg_id_
std::string end_client_msg_id_
Definition: nim_cpp_msglog.h:164
nim::MsgLog::QueryMsgAsyncParam::time
int64_t time
Definition: nim_cpp_msglog.h:137
nim::MsgLog::DeleteHistoryOnLineAsyncExCallback
std::function< void(const NIMResCode, const std::string &, nim::NIMSessionType, uint64_t, const std::string &)> DeleteHistoryOnLineAsyncExCallback
Definition: nim_cpp_msglog.h:57
nim::MsgLog::FullTextSearchOnlineAsyncParam::msglog_limit_
uint32_t msglog_limit_
限制每个会话返回的消息数量
Definition: nim_cpp_msglog.h:187