@Entity public class Push extends Object implements Serializable
PushDeviceTuple
class represent the status
of a push message being sent to a device.
The Sender
class represents a tool or external service that initialised the
push notification.Constructor and Description |
---|
Push()
Creates a new instance of a
Push |
Modifier and Type | Method and Description |
---|---|
boolean |
getEmergency()
Returns true if it is an emergency.
|
String |
getMessage()
Gets the message.
|
Timestamp |
getPostedTimestamp()
Gets Timestamp this
Push was last persisted. |
Long |
getPushId()
Returns the ID.
|
int |
getRecipients()
Gets the number of recipients
|
String |
getSender()
Gets the sender
|
String |
getTitle()
Gets the title.
|
String |
getUrl()
Gets the URL
|
Long |
getVersionNumber()
Gets the version number.
|
void |
setEmergency(boolean emergency)
Sets if it is an emergency
|
void |
setMessage(String message)
Sets the message.
|
void |
setPostedTimestamp(Timestamp postedTimestamp)
Sets Timestamp this
Push was last persisted. |
void |
setPushId(Long pushId)
Sets the ID.
|
void |
setRecipients(int recipients)
Sets the number of recipients
|
void |
setSender(String sender)
Sets the sender
|
void |
setTitle(String title)
Sets the title.
|
void |
setUrl(String url)
Sets the URL
|
void |
setVersionNumber(Long versionNumber)
Sets the version number.
|
String |
toJson() |
String |
toString() |
public Push()
Push
public Timestamp getPostedTimestamp()
Push
was last persisted.Push
was last persisted.public void setPostedTimestamp(Timestamp postedTimestamp)
Push
was last persisted.postedTimestamp
- Timestamp this Push
was last persisted.public boolean getEmergency()
public void setEmergency(boolean emergency)
emergency
- Flag if it is an emergencypublic int getRecipients()
public void setRecipients(int recipients)
recipients
- number of recipientspublic String getMessage()
public void setMessage(String message)
message
- The message.public Long getVersionNumber()
public void setVersionNumber(Long versionNumber)
versionNumber
- The version number.Copyright © 2011–2014 The Kuali Foundation. All rights reserved.