org.androidpn.server.xmpp.push
Class NotificationManager

java.lang.Object
  extended by org.androidpn.server.xmpp.push.NotificationManager

public class NotificationManager
extends java.lang.Object

This class is to manage sending the notifcations to the users.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
NotificationManager()
          Constructor.
 
Method Summary
 void sendBroadcast(java.lang.String apiKey, java.lang.String title, java.lang.String message, java.lang.String uri)
          Broadcasts a newly created notification message to all connected users.
 void sendNotifcationToUser(java.lang.String apiKey, java.lang.String username, java.lang.String title, java.lang.String message, java.lang.String uri)
          Sends a newly created notification message to the specific user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationManager

public NotificationManager()
Constructor.

Method Detail

sendBroadcast

public void sendBroadcast(java.lang.String apiKey,
                          java.lang.String title,
                          java.lang.String message,
                          java.lang.String uri)
Broadcasts a newly created notification message to all connected users.

Parameters:
apiKey - the API key
title - the title
message - the message details
uri - the uri

sendNotifcationToUser

public void sendNotifcationToUser(java.lang.String apiKey,
                                  java.lang.String username,
                                  java.lang.String title,
                                  java.lang.String message,
                                  java.lang.String uri)
Sends a newly created notification message to the specific user.

Parameters:
apiKey - the API key
title - the title
message - the message details
uri - the uri