NIM C# SDK  6.3.0
NIMChatRoom.Message Class Reference

聊天室消息 More...

Inheritance diagram for NIMChatRoom.Message:
NimUtility.NimJsonObject< Message >

Public Member Functions

 Message ()
 
- Public Member Functions inherited from NimUtility.NimJsonObject< Message >
virtual string Serialize ()
 
virtual string SerializeWithIndented ()
 

Properties

long RoomId [get, set]
 消息所属的聊天室id(服务器填充) More...
 
string SenderId [get, set]
 消息发送者的账号(服务器填充) More...
 
long TimeStamp [get, set]
 消息发送的时间戳(服务器填充)(毫秒) More...
 
NIMChatRoomClientType SenderClientType [get, set]
 消息发送方客户端类型,服务器填写,发送方不需要填写 More...
 
string SenderNickName [get, set]
 消息发送方昵称 More...
 
string SenderAvator [get, set]
 消息发送方头像,服务器填写,发送方不需要填写 More...
 
string SenderExtension [get, set]
 消息发送方身份扩展字段,服务器填写,发送方不需要填写 More...
 
NIMChatRoomMsgType MessageType [get, set]
 消息类型 More...
 
string MessageAttachment [get, set]
 消息内容,长度限制2048,如果约定的是json字符串,必须为可以解析为json的非格式化的字符串 More...
 
string ClientMsgId [get, set]
 客户端消息id More...
 
bool NeedResend [get, set]
 消息重发标记位 More...
 
string Extension [get, set]
 第三方扩展字段, 长度限制4096, 必须为可以解析为Json的非格式化的字符串 More...
 
bool? AntiSpamEnabled [get, set]
 是否需要过易盾反垃圾,默认false More...
 
string AntiSpamContent [get, set]
 (可选)开发者自定义的反垃圾字段,长度限制:5000字符 More...
 
int SaveHistory [get, set]
 (可选)该消息是否存储云端历史,可选,0:不是,1:是, 默认1 More...
 
string Body [get, set]
 (可选)文本消息内容(聊天室机器人文本消息) More...
 
string LocalResourcePath [get, set]
 媒体文件本地绝对路径(客户端) More...
 
string LocalResourceId [get, set]
 媒体文件ID(客户端) More...
 
- Properties inherited from NimUtility.NimJsonObject< Message >
virtual bool IgnoreDefauleValue [get, set]
 
string JSON [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from NimUtility.NimJsonObject< Message >
static T Deserialize (string json)
 

Detailed Description

聊天室消息

Constructor & Destructor Documentation

◆ Message()

NIMChatRoom.Message.Message ( )

Property Documentation

◆ AntiSpamContent

string NIMChatRoom.Message.AntiSpamContent
getset

(可选)开发者自定义的反垃圾字段,长度限制:5000字符

◆ AntiSpamEnabled

bool? NIMChatRoom.Message.AntiSpamEnabled
getset

是否需要过易盾反垃圾,默认false

◆ Body

string NIMChatRoom.Message.Body
getset

(可选)文本消息内容(聊天室机器人文本消息)

◆ ClientMsgId

string NIMChatRoom.Message.ClientMsgId
getset

客户端消息id

◆ Extension

string NIMChatRoom.Message.Extension
getset

第三方扩展字段, 长度限制4096, 必须为可以解析为Json的非格式化的字符串

◆ LocalResourceId

string NIMChatRoom.Message.LocalResourceId
getset

媒体文件ID(客户端)

◆ LocalResourcePath

string NIMChatRoom.Message.LocalResourcePath
getset

媒体文件本地绝对路径(客户端)

◆ MessageAttachment

string NIMChatRoom.Message.MessageAttachment
getset

消息内容,长度限制2048,如果约定的是json字符串,必须为可以解析为json的非格式化的字符串

◆ MessageType

NIMChatRoomMsgType NIMChatRoom.Message.MessageType
getset

消息类型

◆ NeedResend

bool NIMChatRoom.Message.NeedResend
getset

消息重发标记位

◆ RoomId

long NIMChatRoom.Message.RoomId
getset

消息所属的聊天室id(服务器填充)

◆ SaveHistory

int NIMChatRoom.Message.SaveHistory
getset

(可选)该消息是否存储云端历史,可选,0:不是,1:是, 默认1

◆ SenderAvator

string NIMChatRoom.Message.SenderAvator
getset

消息发送方头像,服务器填写,发送方不需要填写

◆ SenderClientType

NIMChatRoomClientType NIMChatRoom.Message.SenderClientType
getset

消息发送方客户端类型,服务器填写,发送方不需要填写

◆ SenderExtension

string NIMChatRoom.Message.SenderExtension
getset

消息发送方身份扩展字段,服务器填写,发送方不需要填写

◆ SenderId

string NIMChatRoom.Message.SenderId
getset

消息发送者的账号(服务器填充)

◆ SenderNickName

string NIMChatRoom.Message.SenderNickName
getset

消息发送方昵称

◆ TimeStamp

long NIMChatRoom.Message.TimeStamp
getset

消息发送的时间戳(服务器填充)(毫秒)