com.nokia.notifications
Interface NotificationMessage


public interface NotificationMessage

NotificationMessage is notification received from a service. NotificationMessage is received in NotificationSessionListener.messageReceived(NotificationMessage).


Method Summary
 java.lang.String getFrom()
          Returns sender's JID.
 java.lang.String getNotificationItemId()
          Returns the item ID of the message.
 NotificationPayload getPayload()
          Returns NotificationPayload object.
 java.lang.String getSenderInformation()
          Returns sender's Application ID.
 java.util.Date getTimestamp()
          Returns message publication time.
 java.lang.String getTitle()
          Returns the message title.
 

Method Detail

getFrom

java.lang.String getFrom()
Returns sender's JID.

Returns:
the Service ID which sends the notification.

getPayload

NotificationPayload getPayload()
Returns NotificationPayload object.

Returns:
payload object, or null if the notification did not contain a payload.

getSenderInformation

java.lang.String getSenderInformation()
Returns sender's Application ID.

Returns:
Application ID of the Service.

getTimestamp

java.util.Date getTimestamp()
Returns message publication time. Publication time is the time when the Notification Server received the message.

Returns:
timestamp of the message

getTitle

java.lang.String getTitle()
Returns the message title.

Returns:
the message title, or null if no title is defined.

getNotificationItemId

java.lang.String getNotificationItemId()
Returns the item ID of the message. This value is also passed as launch parameter when starting NNA MIDlet and matches with the last notification which was received just before the MIDlet was launched.

Returns:
the Item Id.