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

#include <nim_cpp_msglog.h>

Public Member Functions

std::string ToJsonString () const
 

Public Attributes

NIMMsgLogQueryRange query_range_
 消息历史的检索范围(目前暂不支持某些范围的组合检索,详见NIMMsgLogQueryRange说明)
 
std::list< std::string > ids_
 会话id(对方的account id或者群组tid)的集合,目前暂不支持多个的组合检索,详见NIMMsgLogQueryRange说明
 
int limit_count_
 本次查询的消息条数上限(最多100条)
 
int64_t from_time_
 起始时间点,单位:毫秒
 
int64_t end_time_
 结束时间点,单位:毫秒
 
std::string end_client_msg_id_
 结束查询的最后一条消息的end_client_msg_id(不包含在查询结果中)
 
bool reverse_
 true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)
 
NIMMessageType msg_type_
 检索的消息类型(目前只支持kNIMMessageTypeText、kNIMMessageTypeImage和kNIMMessageTypeFile这三种类型消息)
 
int32_t msg_sub_type_
 消息的子类型
 
std::string search_content_
 检索文本(目前只支持kNIMMessageTypeText和kNIMMessageTypeFile这两种类型消息的文本关键字检索,即支持文字消息和文件名的检索
 

Detailed Description

根据指定条件查询本地消息(不包括系统消息)


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