NIM SDK API  8.5.1
Public Member Functions | Public Attributes | List of all members
nim::MsgLog::QueryMsgByOptionsAsyncParam Class Reference

#include <nim_cpp_msglog.h>

Public Member Functions

std::string ToJsonString () const
 

Public Attributes

NIMMsgLogQueryRange query_range_
 
std::list< std::string > ids_
 
int limit_count_
 
int64_t from_time_
 
int64_t end_time_
 
std::string end_client_msg_id_
 
bool reverse_
 
NIMMessageType msg_type_
 
int32_t msg_sub_type_
 
std::string search_content_
 

Detailed Description

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

Member Data Documentation

◆ end_client_msg_id_

std::string nim::MsgLog::QueryMsgByOptionsAsyncParam::end_client_msg_id_

结束查询的最后一条消息的end_client_msg_id(不包含在查询结果中)

◆ end_time_

int64_t nim::MsgLog::QueryMsgByOptionsAsyncParam::end_time_

结束时间点,单位:毫秒

◆ from_time_

int64_t nim::MsgLog::QueryMsgByOptionsAsyncParam::from_time_

起始时间点,单位:毫秒

◆ ids_

std::list<std::string> nim::MsgLog::QueryMsgByOptionsAsyncParam::ids_

会话id(对方的account id或者群组tid)的集合,目前暂不支持多个的组合检索,详见NIMMsgLogQueryRange说明

◆ limit_count_

int nim::MsgLog::QueryMsgByOptionsAsyncParam::limit_count_

本次查询的消息条数上限(最多100条)

◆ msg_sub_type_

int32_t nim::MsgLog::QueryMsgByOptionsAsyncParam::msg_sub_type_

消息的子类型

◆ msg_type_

NIMMessageType nim::MsgLog::QueryMsgByOptionsAsyncParam::msg_type_

检索的消息类型(目前只支持kNIMMessageTypeText、kNIMMessageTypeImage和kNIMMessageTypeFile这三种类型消息)

◆ query_range_

NIMMsgLogQueryRange nim::MsgLog::QueryMsgByOptionsAsyncParam::query_range_

消息历史的检索范围(目前暂不支持某些范围的组合检索,详见NIMMsgLogQueryRange说明)

◆ reverse_

bool nim::MsgLog::QueryMsgByOptionsAsyncParam::reverse_

true:反向查询(按时间正序起查,正序排列),false:按时间逆序起查,逆序排列(建议默认为false)

◆ search_content_

std::string nim::MsgLog::QueryMsgByOptionsAsyncParam::search_content_

检索文本(目前只支持kNIMMessageTypeText和kNIMMessageTypeFile这两种类型消息的文本关键字检索,即支持文字消息和文件名的检索


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