NIM SDK API  9.0.0
Public Member Functions | Public Attributes | List of all members
nim::SessionOnLineServiceHelper::SessionInfo Struct Referenceabstract

会话服务 会话数据定义 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
 

Detailed Description

会话服务 会话数据定义

Member Data Documentation

◆ 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表示消息撤回通知

◆ type_

NIMSessionType nim::SessionOnLineServiceHelper::SessionInfo::type_

会话类型

◆ update_time_

uint64_t nim::SessionOnLineServiceHelper::SessionInfo::update_time_

最后更新时间戳


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