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

#include <v2_nim_def_struct.hpp>

Public 属性

nstd::string messageClientId
 客户端消息 ID
 
V2NIMLoginClientType senderClientType {V2NIM_LOGIN_CLIENT_TYPE_UNKNOWN}
 消息发送方客户端类型
 
uint64_t createTime {0}
 消息时间, 单位毫秒
 
nstd::string senderId
 消息发送者账号
 
nstd::string roomId
 聊天室 ID
 
bool isSelf {false}
 消息发送者是否是自己
 
V2NIMMessageAttachmentUploadState attachmentUploadState {V2NIM_MESSAGE_ATTACHMENT_UPLOAD_STATE_UNKNOWN}
 附件上传状态
 
V2NIMMessageSendingState sendingState {V2NIM_MESSAGE_SENDING_STATE_UNKNOWN}
 消息发送状态
 
V2NIMMessageType messageType {V2NIM_MESSAGE_TYPE_TEXT}
 消息类型
 
uint32_t subType {0}
 消息子类型
 
nstd::string text
 消息内容
 
nstd::shared_ptr< V2NIMMessageAttachmentattachment
 消息附属附件
 
nstd::optional< nstd::stringserverExtension
 服务端扩展
 
nstd::optional< nstd::stringcallbackExtension
 第三方扩展字段
 
V2NIMMessageRouteConfig routeConfig
 路由抄送相关配置
 
V2NIMMessageAntispamConfig antispamConfig
 反垃圾相关配置
 
nstd::string notifyTargetTags
 消息的目标标签表达式
 
V2NIMChatroomMessageConfig messageConfig
 聊天室消息配置
 
V2NIMUserInfoConfig userInfoConfig
 消息发送时的用户信息
 
nstd::optional< V2NIMLocationInfolocationInfo
 消息空间坐标信息配置
 

类成员变量说明

◆ antispamConfig

V2NIMMessageAntispamConfig v2::V2NIMChatroomMessage::antispamConfig

反垃圾相关配置

◆ attachment

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

消息附属附件

◆ attachmentUploadState

V2NIMMessageAttachmentUploadState v2::V2NIMChatroomMessage::attachmentUploadState {V2NIM_MESSAGE_ATTACHMENT_UPLOAD_STATE_UNKNOWN}

附件上传状态

◆ callbackExtension

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

第三方扩展字段

◆ createTime

uint64_t v2::V2NIMChatroomMessage::createTime {0}

消息时间, 单位毫秒

◆ isSelf

bool v2::V2NIMChatroomMessage::isSelf {false}

消息发送者是否是自己

◆ locationInfo

nstd::optional<V2NIMLocationInfo> v2::V2NIMChatroomMessage::locationInfo

消息空间坐标信息配置

◆ messageClientId

nstd::string v2::V2NIMChatroomMessage::messageClientId

客户端消息 ID

◆ messageConfig

V2NIMChatroomMessageConfig v2::V2NIMChatroomMessage::messageConfig

聊天室消息配置

◆ messageType

V2NIMMessageType v2::V2NIMChatroomMessage::messageType {V2NIM_MESSAGE_TYPE_TEXT}

消息类型

◆ notifyTargetTags

nstd::string v2::V2NIMChatroomMessage::notifyTargetTags

消息的目标标签表达式

◆ roomId

nstd::string v2::V2NIMChatroomMessage::roomId

聊天室 ID

◆ routeConfig

V2NIMMessageRouteConfig v2::V2NIMChatroomMessage::routeConfig

路由抄送相关配置

◆ senderClientType

V2NIMLoginClientType v2::V2NIMChatroomMessage::senderClientType {V2NIM_LOGIN_CLIENT_TYPE_UNKNOWN}

消息发送方客户端类型

◆ senderId

nstd::string v2::V2NIMChatroomMessage::senderId

消息发送者账号

◆ sendingState

V2NIMMessageSendingState v2::V2NIMChatroomMessage::sendingState {V2NIM_MESSAGE_SENDING_STATE_UNKNOWN}

消息发送状态

◆ serverExtension

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

服务端扩展

◆ subType

uint32_t v2::V2NIMChatroomMessage::subType {0}

消息子类型

◆ text

nstd::string v2::V2NIMChatroomMessage::text

消息内容

◆ userInfoConfig

V2NIMUserInfoConfig v2::V2NIMChatroomMessage::userInfoConfig

消息发送时的用户信息


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