# Class LocalNotification.MessagingStyle.Message

java.lang.Object
com.codename1.notifications.LocalNotification.MessagingStyle.Message

Enclosing class:
  `LocalNotification.MessagingStyle`

public static class LocalNotification.MessagingStyle.Message extends java.lang.Object
A single message within a messaging style notification.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Message(String text, long timestamp, String senderName)`
  Creates a message.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getSenderName()`
  Returns the sender display name.
  `String`
  `getText()`
  Returns the message text.
  `long`
  `getTimestamp()`
  Returns the message timestamp.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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