public class DefaultMessageEventRequestListener extends java.lang.Object implements MessageEventRequestListener
This class automatically sends a delivered notification to the sender of the message if the sender has requested to be notified when the message is delivered.
| Constructor and Description |
|---|
DefaultMessageEventRequestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
composingNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is composing a reply notification is
received.
|
void |
deliveredNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message delivered notification is received.
|
void |
displayedNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request for message displayed notification is received.
|
void |
offlineNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
Called when a request that the receiver of the message is offline is received.
|
public void deliveredNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
MessageEventRequestListenerdeliveredNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void displayedNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
MessageEventRequestListenerdisplayedNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.public void composingNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
MessageEventRequestListenercomposingNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.public void offlineNotificationRequested(org.jxmpp.jid.Jid from,
java.lang.String packetID,
MessageEventManager messageEventManager)
MessageEventRequestListenerofflineNotificationRequested in interface MessageEventRequestListenerfrom - the user that sent the notification.packetID - the id of the message that was sent.messageEventManager - the messageEventManager that fired the listener.