public class NotificationEvent extends Object implements Serializable
| Constructor and Description |
|---|
NotificationEvent(long timestamp,
String type,
JSONObject payloadJSONObject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getDeliverBy() |
int |
getDeliveryType() |
JSONObject |
getPayload() |
long |
getTimestamp() |
String |
getType() |
String |
getUuid() |
int |
hashCode() |
boolean |
isArchived() |
boolean |
isDeliveryRequired() |
void |
setArchived(boolean archived) |
void |
setDeliverBy(long deliverBy) |
void |
setDeliveryRequired(long deliverBy) |
void |
setDeliveryType(int deliveryType) |
void |
setTimestamp(long timestamp) |
void |
setUuid(String uuid) |
JSONObject |
toJSONObject() |
public NotificationEvent(long timestamp,
String type,
JSONObject payloadJSONObject)
public long getDeliverBy()
public int getDeliveryType()
public JSONObject getPayload()
public long getTimestamp()
public String getType()
public String getUuid()
public boolean isArchived()
public boolean isDeliveryRequired()
public void setArchived(boolean archived)
public void setDeliverBy(long deliverBy)
throws IllegalArgumentException
IllegalArgumentExceptionpublic void setDeliveryRequired(long deliverBy)
throws IllegalArgumentException
IllegalArgumentExceptionpublic void setDeliveryType(int deliveryType)
public void setTimestamp(long timestamp)
public void setUuid(String uuid)
public JSONObject toJSONObject()