Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.notification
Class NotificationData

java.lang.Object
  extended by net.java.sip.communicator.service.notification.NotificationData

public class NotificationData
extends Object

Object to cache fired notifications before all handler implementations are ready registered.

Author:
Ingo Bauersachs

Constructor Summary
NotificationData(String eventType, String title, String message, Map<String,String> extra, byte[] icon, Object tag)
          Creates a new instance of this class.
 
Method Summary
 String getEventType()
          Gets the type of the event that we'd like to fire a notification for
 Map<String,String> getExtra()
          Gets additional data (such as caller information).
(package private)  byte[] getIcon()
          Gets the icon to show in the notification if and where appropriate.
(package private)  String getMessage()
          Gets the message to use if and where appropriate (e.g.
(package private)  Object getTag()
          Gets additional info to be used by the notification handler.
(package private)  String getTitle()
          Gets the title of the given message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationData

NotificationData(String eventType,
                 String title,
                 String message,
                 Map<String,String> extra,
                 byte[] icon,
                 Object tag)
Creates a new instance of this class.

Parameters:
eventType - the type of the event that we'd like to fire a notification for.
title - the title of the given message
message - the message to use if and where appropriate (e.g. with systray or log notification.)
extra - additional data (such as caller information)
icon - the icon to show in the notification if and where appropriate
tag - additional info to be used by the notification handler
Method Detail

getEventType

public String getEventType()
Gets the type of the event that we'd like to fire a notification for

Returns:
the eventType

getTitle

String getTitle()
Gets the title of the given message.

Returns:
the title

getMessage

String getMessage()
Gets the message to use if and where appropriate (e.g. with systray or log notification).

Returns:
the message

getExtra

public Map<String,String> getExtra()
Gets additional data (such as caller information).

Returns:
the extra data

getIcon

byte[] getIcon()
Gets the icon to show in the notification if and where appropriate.

Returns:
the icon

getTag

Object getTag()
Gets additional info to be used by the notification handler.

Returns:
the tag

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.