NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim::SessionOnLineServiceHelper::SessionInfo结构体 参考abstract

会话服务 会话数据定义 更多...

#include <nim_session_online_service_helper.h>

Public 成员函数

 SessionInfo ()
 
template<int type>
auto GetLastMessage () const -> typename std::enable_if< type==0
 
 ParseReceiveMessage (last_message_, msg)
 
template<int type>
auto GetLastMessage () const -> typename std::enable_if< type==1, RecallMsgNotify >::type
 

Public 属性

std::string id_
 会话ID
 
NIMSessionType type_
 会话类型
 
std::string ext_
 自定的扩展字段
 
std::string last_message_
 最后一条会话 json string
 
uint64_t update_time_ {0}
 最后更新时间戳
 
int last_message_type_
 最后一条消息的类型 0表示普通消息,1表示消息撤回通知
 
return msg
 

详细描述

会话服务 会话数据定义

构造及析构函数说明

◆ SessionInfo()

nim::SessionOnLineServiceHelper::SessionInfo::SessionInfo ( )
inline

成员函数说明

◆ GetLastMessage() [1/2]

template<int type>
auto nim::SessionOnLineServiceHelper::SessionInfo::GetLastMessage ( ) const -> typename std::enable_if<type =
pure virtual

◆ GetLastMessage() [2/2]

template<int type>
auto nim::SessionOnLineServiceHelper::SessionInfo::GetLastMessage ( ) const -> typename std::enable_if<type == 1, RecallMsgNotify>::type
inline

◆ ParseReceiveMessage()

nim::SessionOnLineServiceHelper::SessionInfo::ParseReceiveMessage ( last_message_  ,
msg   
)

类成员变量说明

◆ ext_

std::string nim::SessionOnLineServiceHelper::SessionInfo::ext_

自定的扩展字段

◆ id_

std::string nim::SessionOnLineServiceHelper::SessionInfo::id_

会话ID

◆ last_message_

std::string nim::SessionOnLineServiceHelper::SessionInfo::last_message_

最后一条会话 json string

◆ last_message_type_

int nim::SessionOnLineServiceHelper::SessionInfo::last_message_type_

最后一条消息的类型 0表示普通消息,1表示消息撤回通知

◆ msg

return nim::SessionOnLineServiceHelper::SessionInfo::msg

◆ type_

NIMSessionType nim::SessionOnLineServiceHelper::SessionInfo::type_

会话类型

◆ update_time_

uint64_t nim::SessionOnLineServiceHelper::SessionInfo::update_time_ {0}

最后更新时间戳


该结构体的文档由以下文件生成: