NIM SDK API  9.0.0
Public Attributes | Friends | List of all members
nim::MsgLog::QueryMsgOnlineAsyncParam Class Reference

#include <nim_cpp_msglog.h>

Public Attributes

std::string id_
 
nim::NIMSessionType to_type_
 
int limit_count_
 
int64_t from_time_
 
int64_t end_time_
 
int64_t end_msg_id_
 
bool reverse_
 
bool need_save_to_local_
 
bool auto_download_attachment_
 
std::vector< nim::NIMMessageType > msg_type_list_
 
bool is_exclusion_type_
 

Friends

class MsgLog
 

Detailed Description

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

Member Data Documentation

◆ auto_download_attachment_

bool nim::MsgLog::QueryMsgOnlineAsyncParam::auto_download_attachment_

bool 查询结果回来后,是否需要sdk自动下载消息附件。true:需要,false:不需要

◆ end_msg_id_

int64_t nim::MsgLog::QueryMsgOnlineAsyncParam::end_msg_id_

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

◆ end_time_

int64_t nim::MsgLog::QueryMsgOnlineAsyncParam::end_time_

int64_t 结束时间点,单位:毫秒

◆ from_time_

int64_t nim::MsgLog::QueryMsgOnlineAsyncParam::from_time_

int64_t 起始时间点,单位:毫秒

◆ id_

std::string nim::MsgLog::QueryMsgOnlineAsyncParam::id_

查询id,对方的account id或者群组tid

◆ is_exclusion_type_

bool nim::MsgLog::QueryMsgOnlineAsyncParam::is_exclusion_type_

bool true : 获取除msg_type_list_中指定的所有类型消息 ,false :只获取 msg_type_list_ 中指定的类型的消息

◆ limit_count_

int nim::MsgLog::QueryMsgOnlineAsyncParam::limit_count_

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

◆ msg_type_list_

std::vector<nim::NIMMessageType> nim::MsgLog::QueryMsgOnlineAsyncParam::msg_type_list_

vector 要获取或排除掉的消息类型 由 is_exclusion_type_ 参数决定

◆ need_save_to_local_

bool nim::MsgLog::QueryMsgOnlineAsyncParam::need_save_to_local_

bool 将在线查询结果保存到本地,false: 不保存

◆ reverse_

bool nim::MsgLog::QueryMsgOnlineAsyncParam::reverse_

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

◆ to_type_

nim::NIMSessionType nim::MsgLog::QueryMsgOnlineAsyncParam::to_type_

enum 会话类型,双人0,群组1 (nim_msglog_def.h)


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