mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Fix MessageEventNotificationListener
This commit is contained in:
parent
1151371c36
commit
61bdc6f28c
2 changed files with 8 additions and 6 deletions
|
@ -194,7 +194,7 @@ public final class MessageEventManager extends Manager {
|
|||
Method method =
|
||||
MessageEventNotificationListener.class.getDeclaredMethod(
|
||||
methodName,
|
||||
new Class<?>[] { String.class, String.class });
|
||||
new Class<?>[] { Jid.class, String.class });
|
||||
for (MessageEventNotificationListener listener : messageEventNotificationListeners) {
|
||||
method.invoke(listener, new Object[] { from, packetID });
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
package org.jivesoftware.smackx.xevent;
|
||||
|
||||
import org.jxmpp.jid.Jid;
|
||||
|
||||
/**
|
||||
*
|
||||
* A listener that is fired anytime a message event notification is received.
|
||||
|
@ -33,7 +35,7 @@ public interface MessageEventNotificationListener {
|
|||
* @param from the user that sent the notification.
|
||||
* @param packetID the id of the message that was sent.
|
||||
*/
|
||||
public void deliveredNotification(String from, String packetID);
|
||||
public void deliveredNotification(Jid from, String packetID);
|
||||
|
||||
/**
|
||||
* Called when a notification of message displayed is received.
|
||||
|
@ -41,7 +43,7 @@ public interface MessageEventNotificationListener {
|
|||
* @param from the user that sent the notification.
|
||||
* @param packetID the id of the message that was sent.
|
||||
*/
|
||||
public void displayedNotification(String from, String packetID);
|
||||
public void displayedNotification(Jid from, String packetID);
|
||||
|
||||
/**
|
||||
* Called when a notification that the receiver of the message is composing a reply is
|
||||
|
@ -50,7 +52,7 @@ public interface MessageEventNotificationListener {
|
|||
* @param from the user that sent the notification.
|
||||
* @param packetID the id of the message that was sent.
|
||||
*/
|
||||
public void composingNotification(String from, String packetID);
|
||||
public void composingNotification(Jid from, String packetID);
|
||||
|
||||
/**
|
||||
* Called when a notification that the receiver of the message is offline is received.
|
||||
|
@ -58,7 +60,7 @@ public interface MessageEventNotificationListener {
|
|||
* @param from the user that sent the notification.
|
||||
* @param packetID the id of the message that was sent.
|
||||
*/
|
||||
public void offlineNotification(String from, String packetID);
|
||||
public void offlineNotification(Jid from, String packetID);
|
||||
|
||||
/**
|
||||
* Called when a notification that the receiver of the message cancelled the reply
|
||||
|
@ -67,5 +69,5 @@ public interface MessageEventNotificationListener {
|
|||
* @param from the user that sent the notification.
|
||||
* @param packetID the id of the message that was sent.
|
||||
*/
|
||||
public void cancelledNotification(String from, String packetID);
|
||||
public void cancelledNotification(Jid from, String packetID);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue