NIM PC Cross Platform SDK
nim::MsgLog::QueryMsgOnlineAsyncParam Class Reference

#include <nim_cpp_msglog.h>

Public Attributes

std::string id_
 查询id,对方的account id或者群组tid
 
nim::NIMSessionType to_type_
 enum 会话类型,双人0,群组1 (nim_msglog_def.h)
 
int limit_count_
 int 本次查询的消息条数上限(最多100条)
 
int64_t from_time_
 int64_t 起始时间点,单位:毫秒
 
int64_t end_time_
 int64_t 结束时间点,单位:毫秒
 
int64_t end_msg_id_
 int64_t 结束查询的最后一条消息的server_msg_id(不包含在查询结果中)
 
bool reverse_
 bool true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
 
bool need_save_to_local_
 bool 将在线查询结果保存到本地,false: 不保存
 
bool auto_download_attachment_
 bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要
 
std::vector< nim::NIMMessageTypemsg_type_list_
 vector 要获取或排除掉的消息类型 由 is_exclusion_type_ 参数决定
 
bool is_exclusion_type_
 bool true : 获取除msg_type_list_中指定的所有类型消息 ,false :只获取 msg_type_list_ 中指定的类型的消息
 

Friends

class MsgLog
 

Detailed Description

在线查询消息参数(不包括系统消息)


The documentation for this class was generated from the following files: