public class Event
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
broadcastOnlineOnly
Specify whether to broadcast to online users only.
|
protected java.lang.String |
config
Extended field of the event.
|
protected java.lang.String |
eventId
Event ID
|
protected int |
eventType
Event type, The value range 1-99999 is reserved type by CommsEase
|
protected int |
eventValue
Event state value
|
protected long |
expiry
The validity period of the event.
|
protected java.lang.String |
multiClientConfig
Configuration for multiple devices
|
protected java.util.Map<java.lang.Integer,java.lang.String> |
multiClientConfigMap
Parse the map of multiClientConfig
|
protected java.lang.String |
nimConfig
Server configuration items for predefined events.
|
protected java.lang.String |
publisherAccount
CommsEase account of the event publisher
|
protected int |
publisherClientType
The client type of the event publisher.
|
protected long |
publishTime
The publishing time of the event
|
protected boolean |
syncSelfEnable
Specify whether to support multiple device synchronization
|
Modifier | Constructor and Description |
---|---|
protected |
Event() |
|
Event(int eventType,
int eventValue,
long expiry) |
Modifier and Type | Method and Description |
---|---|
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
protected Event()
public Event(int eventType, int eventValue, long expiry)
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()