NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
v2::V2NIMMessage结构体 参考

#include <v2_nim_def_struct.hpp>

Public 成员函数

 operator V2NIMMessageRefer () const
 

Public 属性

nstd::string messageClientId
 客户端消息 ID
 
nstd::string messageServerId
 服务端消息 ID
 
uint64_t createTime {0}
 消息时间
 
nstd::string senderId
 消息发送者账号
 
nstd::string senderName
 消息发送者发送该消息时那一刻的昵称
 
nstd::string receiverId
 消息接收者账号
 
V2NIMConversationType conversationType {V2NIM_CONVERSATION_TYPE_UNKNOWN}
 消息所属会话类型
 
nstd::string conversationId
 消息所属会话 ID
 
V2NIMMessageType messageType {V2NIM_MESSAGE_TYPE_TEXT}
 消息类型
 
uint32_t subType {0}
 消息内容
 
nstd::string text
 消息文本
 
nstd::shared_ptr< V2NIMMessageAttachmentattachment
 消息附属附件
 
nstd::optional< nstd::stringserverExtension
 服务端扩展
 
nstd::optional< nstd::stringlocalExtension
 本地扩展
 
nstd::optional< nstd::stringcallbackExtension
 回调扩展
 
nstd::optional< V2NIMMessageSendingStatesendingState
 消息发送状态
 
nstd::optional< V2NIMMessageAttachmentUploadStateattachmentUploadState
 附件上传状态
 
V2NIMMessageStatus messageStatus
 消息状态
 
V2NIMMessageConfig messageConfig
 消息相关配置
 
V2NIMMessagePushConfig pushConfig
 推送相关配置
 
V2NIMMessageRouteConfig routeConfig
 路由抄送相关配置
 
V2NIMMessageAntispamConfig antispamConfig
 反垃圾相关配置
 
V2NIMMessageRobotConfig robotConfig
 机器人相关配置
 
nstd::optional< V2NIMMessageReferthreadRoot
 Thread 消息引用
 
nstd::optional< V2NIMMessageReferthreadReply
 回复消息引用
 
bool isSelf {false}
 消息发送者是否是自己
 
nstd::optional< V2NIMMessageAIConfigaiConfig
 AI 数字人相关信息
 
nstd::optional< uint64_t > modifyTime
 消息更新时间
 
nstd::optional< nstd::stringmodifyAccountId
 消息更新者账号
 

成员函数说明

◆ operator V2NIMMessageRefer()

v2::V2NIMMessage::operator V2NIMMessageRefer ( ) const
inline

类成员变量说明

◆ aiConfig

nstd::optional<V2NIMMessageAIConfig> v2::V2NIMMessage::aiConfig

AI 数字人相关信息

◆ antispamConfig

V2NIMMessageAntispamConfig v2::V2NIMMessage::antispamConfig

反垃圾相关配置

◆ attachment

nstd::shared_ptr<V2NIMMessageAttachment> v2::V2NIMMessage::attachment

消息附属附件

◆ attachmentUploadState

nstd::optional<V2NIMMessageAttachmentUploadState> v2::V2NIMMessage::attachmentUploadState

附件上传状态

◆ callbackExtension

nstd::optional<nstd::string> v2::V2NIMMessage::callbackExtension

回调扩展

◆ conversationId

nstd::string v2::V2NIMMessage::conversationId

消息所属会话 ID

◆ conversationType

V2NIMConversationType v2::V2NIMMessage::conversationType {V2NIM_CONVERSATION_TYPE_UNKNOWN}

消息所属会话类型

◆ createTime

uint64_t v2::V2NIMMessage::createTime {0}

消息时间

◆ isSelf

bool v2::V2NIMMessage::isSelf {false}

消息发送者是否是自己

◆ localExtension

nstd::optional<nstd::string> v2::V2NIMMessage::localExtension

本地扩展

◆ messageClientId

nstd::string v2::V2NIMMessage::messageClientId

客户端消息 ID

◆ messageConfig

V2NIMMessageConfig v2::V2NIMMessage::messageConfig

消息相关配置

◆ messageServerId

nstd::string v2::V2NIMMessage::messageServerId

服务端消息 ID

◆ messageStatus

V2NIMMessageStatus v2::V2NIMMessage::messageStatus

消息状态

◆ messageType

V2NIMMessageType v2::V2NIMMessage::messageType {V2NIM_MESSAGE_TYPE_TEXT}

消息类型

◆ modifyAccountId

nstd::optional<nstd::string> v2::V2NIMMessage::modifyAccountId

消息更新者账号

◆ modifyTime

nstd::optional<uint64_t> v2::V2NIMMessage::modifyTime

消息更新时间

◆ pushConfig

V2NIMMessagePushConfig v2::V2NIMMessage::pushConfig

推送相关配置

◆ receiverId

nstd::string v2::V2NIMMessage::receiverId

消息接收者账号

◆ robotConfig

V2NIMMessageRobotConfig v2::V2NIMMessage::robotConfig

机器人相关配置

◆ routeConfig

V2NIMMessageRouteConfig v2::V2NIMMessage::routeConfig

路由抄送相关配置

◆ senderId

nstd::string v2::V2NIMMessage::senderId

消息发送者账号

◆ senderName

nstd::string v2::V2NIMMessage::senderName

消息发送者发送该消息时那一刻的昵称

◆ sendingState

nstd::optional<V2NIMMessageSendingState> v2::V2NIMMessage::sendingState

消息发送状态

◆ serverExtension

nstd::optional<nstd::string> v2::V2NIMMessage::serverExtension

服务端扩展

◆ subType

uint32_t v2::V2NIMMessage::subType {0}

消息内容

◆ text

nstd::string v2::V2NIMMessage::text

消息文本

◆ threadReply

nstd::optional<V2NIMMessageRefer> v2::V2NIMMessage::threadReply

回复消息引用

◆ threadRoot

nstd::optional<V2NIMMessageRefer> v2::V2NIMMessage::threadRoot

Thread 消息引用


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