public class Event
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
broadcastOnlineOnly
是否只广播给在线用户,若为 false,事件支持在线广播和登录后同步
|
protected java.lang.String |
config
事件的扩展字段,最大长度为 256 字节,由事件发布客户端配置
|
protected java.lang.String |
eventId
事件ID
|
protected int |
eventType
事件类型,1-99999 为云信保留类型
|
protected int |
eventValue
事件的状态值
|
protected long |
expiry
事件的有效期,范围为 60s 到 7days,数值单位为秒
|
protected java.lang.String |
multiClientConfig
多端 config 配置
|
protected java.util.Map<java.lang.Integer,java.lang.String> |
multiClientConfigMap
解析 multiClientConfig 的多端 config 配置 map
|
protected java.lang.String |
nimConfig
预定义事件中服务端配置项,仅仅对预留事件有效
|
protected java.lang.String |
publisherAccount
事件发布者的云信账号
|
protected int |
publisherClientType
事件发布者客户端类型 @see ClientType
|
protected long |
publishTime
事件发布的时间
|
protected boolean |
syncSelfEnable
是否支持多端同步
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getConfig() |
java.lang.String |
getConfigByClient(int clientType) |
java.lang.String |
getEventId() |
int |
getEventType() |
int |
getEventValue() |
long |
getExpiry() |
java.lang.String |
getMultiClientConfig() |
java.lang.String |
getNimConfig() |
java.lang.String |
getPublisherAccount() |
int |
getPublisherClientType() |
long |
getPublishTime() |
boolean |
isBroadcastOnlineOnly() |
boolean |
isSyncSelfEnable() |
void |
setBroadcastOnlineOnly(boolean broadcastOnlineOnly) |
void |
setConfig(java.lang.String config) |
void |
setEventType(int eventType) |
void |
setEventValue(int eventValue) |
void |
setExpiry(long expiry) |
void |
setSyncSelfEnable(boolean syncSelfEnable) |
protected java.lang.String eventId
protected int eventType
protected int eventValue
protected java.lang.String config
protected long expiry
protected boolean broadcastOnlineOnly
protected boolean syncSelfEnable
protected java.lang.String publisherAccount
protected long publishTime
protected int publisherClientType
protected java.lang.String multiClientConfig
protected java.util.Map<java.lang.Integer,java.lang.String> multiClientConfigMap
protected java.lang.String nimConfig
public void setEventType(int eventType)
public void setEventValue(int eventValue)
public void setConfig(java.lang.String config)
public void setBroadcastOnlineOnly(boolean broadcastOnlineOnly)
public void setExpiry(long expiry)
public void setSyncSelfEnable(boolean syncSelfEnable)
public java.lang.String getEventId()
public int getEventType()
public int getEventValue()
public java.lang.String getConfig()
public long getExpiry()
public boolean isBroadcastOnlineOnly()
public boolean isSyncSelfEnable()
public java.lang.String getPublisherAccount()
public long getPublishTime()
public int getPublisherClientType()
public java.lang.String getMultiClientConfig()
public java.lang.String getConfigByClient(int clientType)
public java.lang.String getNimConfig()