public static class LocalNotification.MessagingStyle.Message
- Object
- LocalNotification.MessagingStyle.Message
A single message within a messaging style notification.
Constructors
public Message(String text, long timestamp, String senderName) | Creates a message. |
Methods
public String getText() | Returns the message text. |
public long getTimestamp() | Returns the message timestamp. |
public String getSenderName() | Returns the sender display name. |
Inherited methods
Constructor details
Message
public Message(String text, long timestamp, String senderName)Creates a message.
Parameters
textString- the message text
timestamplong- the timestamp in milliseconds since the epoch
senderNameString- the sender display name, or null for the device user
Method details
getText
public String getText()Returns the message text.
Returns
the text
getTimestamp
public long getTimestamp()Returns the message timestamp.
Returns
the timestamp in milliseconds since the epoch
getSenderName
public String getSenderName()Returns the sender display name.
Returns
the sender name, or null for the device user