Package rocks.xmpp.extensions.receipts
Class MessageDeliveredEvent
- java.lang.Object
-
- java.util.EventObject
-
- rocks.xmpp.extensions.receipts.MessageDeliveredEvent
-
- All Implemented Interfaces:
Serializable
public final class MessageDeliveredEvent extends EventObject
This event notifies listeners, when a message has been successfully delivered.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getDeliveryDate()
Gets the date, when the original message has been delivered, i.e. when the delivery receipt has been sent.Jid
getFrom()
Gets the sender of the receipt.String
getMessageId()
Gets the message id of the successfully delivered message.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getMessageId
public final String getMessageId()
Gets the message id of the successfully delivered message.- Returns:
- The message id.
-
getDeliveryDate
public final Instant getDeliveryDate()
Gets the date, when the original message has been delivered, i.e. when the delivery receipt has been sent.- Returns:
- The delivery date.
-
getFrom
public final Jid getFrom()
Gets the sender of the receipt. Usually this is the receiver of the original message, which requested the receipt and which can be referenced via the id. But in the context of Multi-User Chat (XEP-0045) or Multi Cast (XEP-0033) this is not the case.s- Returns:
- The sender.
-
-