NIM Unity SDK  V2.4.2
属性 | 所有成员列表
NIM.NIMEventInfo类 参考

事件信息 更多...

类 NIM.NIMEventInfo 继承关系图:
NimUtility.NimJsonObject< NIMEventInfo >

属性

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

额外继承的成员函数

- Public 成员函数 继承自 NimUtility.NimJsonObject< NIMEventInfo >
virtual string Serialize ()
 
virtual string SerializeWithIndented ()
 
- 静态 Public 成员函数 继承自 NimUtility.NimJsonObject< NIMEventInfo >
static T Deserialize (string json)
 

详细描述

事件信息

属性说明

◆ Type

int NIM.NIMEventInfo.Type
getset

事件类型

◆ Value

int NIM.NIMEventInfo.Value
getset

事件值

◆ ClientMsgID

string NIM.NIMEventInfo.ClientMsgID
getset

客户端生成的消息id

◆ Config

string NIM.NIMEventInfo.Config
getset

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

◆ ValidityPeriod

long NIM.NIMEventInfo.ValidityPeriod
getset

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

◆ BroadcastType

int NIM.NIMEventInfo.BroadcastType
getset

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

◆ Sync

int NIM.NIMEventInfo.Sync
getset

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

◆ NimConfig

string NIM.NIMEventInfo.NimConfig
getset

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

◆ TTLType

int NIM.NIMEventInfo.TTLType
getset

客户端不填写

◆ Durable

int NIM.NIMEventInfo.Durable
getset

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

◆ EventTime

long NIM.NIMEventInfo.EventTime
getset

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

◆ ServerMsgID

string NIM.NIMEventInfo.ServerMsgID
getset

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

◆ ClientType

int NIM.NIMEventInfo.ClientType
getset

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

◆ MultiPortConfig

string NIM.NIMEventInfo.MultiPortConfig
getset

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

◆ PublisherID

string NIM.NIMEventInfo.PublisherID
getset

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

◆ DeviceID

string NIM.NIMEventInfo.DeviceID
getset

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


该类的文档由以下文件生成: