NIM SDK API
9.0.0
|
会话服务 会话数据定义 More...
#include <nim_session_online_service_helper.h>
Public Member Functions | |
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 Attributes | |
std::string | id_ |
NIMSessionType | type_ |
std::string | ext_ |
std::string | last_message_ |
uint64_t | update_time_ |
int | last_message_type_ |
return | msg |
会话服务 会话数据定义
std::string nim::SessionOnLineServiceHelper::SessionInfo::ext_ |
自定的扩展字段
std::string nim::SessionOnLineServiceHelper::SessionInfo::id_ |
会话ID
std::string nim::SessionOnLineServiceHelper::SessionInfo::last_message_ |
最后一条会话 json string
int nim::SessionOnLineServiceHelper::SessionInfo::last_message_type_ |
最后一条消息的类型 0表示普通消息,1表示消息撤回通知
NIMSessionType nim::SessionOnLineServiceHelper::SessionInfo::type_ |
会话类型
uint64_t nim::SessionOnLineServiceHelper::SessionInfo::update_time_ |
最后更新时间戳