NIM C# SDK  6.3.0
NIM.NIMEventInfo Class Reference

事件信息 More...

Inheritance diagram for NIM.NIMEventInfo:
NimUtility.NimJsonObject< NIMEventInfo >

Public Member Functions

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

Properties

int Type [get, set]
 事件类型 More...
 
int Value [get, set]
 事件值 More...
 
string ClientMsgID [get, set]
 客户端生成的消息id More...
 
string Config [get, set]
 用户自定义事件扩展属性,最长4K More...
 
long ValidityPeriod [get, set]
 事件有效期,单位:秒,时间范围:60s到7天 More...
 
int BroadcastType [get, set]
 事件广播类型:1:仅在线 2:在线和离线 More...
 
int Sync [get, set]
 0:不同步给自己的其他端,1:同步给自己的其他端 More...
 
string NimConfig [get, set]
 预定义事件的扩展字段(在线状态事件:在线的客户端类型Json) More...
 
int TTLType [get, set]
 客户端不填写 More...
 
int Durable [get, set]
 是否需要持久化(可选字段),默认为需要持久化,0:不需要持久化,1:需要持久化(客户端不填写) More...
 
long EventTime [get, set]
 事件发布的时间戳,服务器补充(客户端不填写) More...
 
string ServerMsgID [get, set]
 服务端生成的消息id(客户端不填写) More...
 
int ClientType [get, set]
 发送客户端类型(客户端不填写) More...
 
string MultiPortConfig [get, set]
 多端配置信息字段,JSON格式{"clent_type":"clent_config","1":"xxx","2":"xxx"} More...
 
string PublisherID [get, set]
 事件发布者的accid(客户端不填写) More...
 
string DeviceID [get, set]
 发送设备id(客户端不填写) More...
 
override bool IgnoreDefauleValue [get, set]
 
- Properties inherited from NimUtility.NimJsonObject< NIMEventInfo >
virtual bool IgnoreDefauleValue [get, set]
 
string JSON [get, set]
 

Additional Inherited Members

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

Detailed Description

事件信息

Constructor & Destructor Documentation

◆ NIMEventInfo()

NIM.NIMEventInfo.NIMEventInfo ( )

Property Documentation

◆ BroadcastType

int NIM.NIMEventInfo.BroadcastType
getset

事件广播类型:1:仅在线 2:在线和离线

◆ ClientMsgID

string NIM.NIMEventInfo.ClientMsgID
getset

客户端生成的消息id

◆ ClientType

int NIM.NIMEventInfo.ClientType
getset

发送客户端类型(客户端不填写)

◆ Config

string NIM.NIMEventInfo.Config
getset

用户自定义事件扩展属性,最长4K

◆ DeviceID

string NIM.NIMEventInfo.DeviceID
getset

发送设备id(客户端不填写)

◆ Durable

int NIM.NIMEventInfo.Durable
getset

是否需要持久化(可选字段),默认为需要持久化,0:不需要持久化,1:需要持久化(客户端不填写)

◆ EventTime

long NIM.NIMEventInfo.EventTime
getset

事件发布的时间戳,服务器补充(客户端不填写)

◆ IgnoreDefauleValue

override bool NIM.NIMEventInfo.IgnoreDefauleValue
getsetprotected

◆ MultiPortConfig

string NIM.NIMEventInfo.MultiPortConfig
getset

多端配置信息字段,JSON格式{"clent_type":"clent_config","1":"xxx","2":"xxx"}

◆ NimConfig

string NIM.NIMEventInfo.NimConfig
getset

预定义事件的扩展字段(在线状态事件:在线的客户端类型Json)

◆ PublisherID

string NIM.NIMEventInfo.PublisherID
getset

事件发布者的accid(客户端不填写)

◆ ServerMsgID

string NIM.NIMEventInfo.ServerMsgID
getset

服务端生成的消息id(客户端不填写)

◆ Sync

int NIM.NIMEventInfo.Sync
getset

0:不同步给自己的其他端,1:同步给自己的其他端

◆ TTLType

int NIM.NIMEventInfo.TTLType
getset

客户端不填写

◆ Type

int NIM.NIMEventInfo.Type
getset

事件类型

◆ ValidityPeriod

long NIM.NIMEventInfo.ValidityPeriod
getset

事件有效期,单位:秒,时间范围:60s到7天

◆ Value

int NIM.NIMEventInfo.Value
getset

事件值