Package rocks.xmpp.extensions.rosterx
Class ContactExchangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- rocks.xmpp.extensions.rosterx.ContactExchangeEvent
-
- All Implemented Interfaces:
Serializable
public final class ContactExchangeEvent extends EventObject
This event notifies listeners, when an entity suggests to add, delete or modify a contact.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getDate()
Gets the send date.Jid
getFrom()
Gets the sender of the roster item exchange.List<ContactExchange.Item>
getItems()
Gets the roster exchange items.String
getMessage()
Gets the optional message, which has been sent together with the roster item exchange.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
Gets the optional message, which has been sent together with the roster item exchange.- Returns:
- The message.
-
getItems
public List<ContactExchange.Item> getItems()
Gets the roster exchange items.- Returns:
- The roster exchange items.
-
getFrom
public Jid getFrom()
Gets the sender of the roster item exchange.- Returns:
- The sender.
-
getDate
public Instant getDate()
Gets the send date.- Returns:
- The send date.
-
-