Class LocalNotification.MessagingStyle.Message

java.lang.Object
com.codename1.notifications.LocalNotification.MessagingStyle.Message
Enclosing class:
LocalNotification.MessagingStyle

public static class LocalNotification.MessagingStyle.Message extends Object
A single message within a messaging style notification.
  • Constructor Details

    • Message

      public Message(String text, long timestamp, String senderName)

      Creates a message.

      Parameters
      • text: the message text

      • timestamp: the timestamp in milliseconds since the epoch

      • senderName: 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