Class ContactExchange.Item
- java.lang.Object
-
- rocks.xmpp.extensions.rosterx.model.ContactExchange.Item
-
- All Implemented Interfaces:
Addressable
- Enclosing class:
- ContactExchange
public static final class ContactExchange.Item extends Object implements Addressable
The roster exchange item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContactExchange.Item.Action
The action for a roster item exchange.
-
Constructor Summary
Constructors Constructor Description Item(Jid jid, String name, Collection<String> groups, ContactExchange.Item.Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactExchange.Item.Action
getAction()
Gets the action indicating adding, deleting or modifying the roster item.List<String>
getGroups()
Gets the suggested roster groupsJid
getJid()
Gets the JID.String
getName()
Gets the suggested name.
-
-
-
Constructor Detail
-
Item
public Item(Jid jid, String name, Collection<String> groups, ContactExchange.Item.Action action)
-
-
Method Detail
-
getJid
public final Jid getJid()
Gets the JID.- Specified by:
getJid
in interfaceAddressable
- Returns:
- The JID.
-
getAction
public final ContactExchange.Item.Action getAction()
Gets the action indicating adding, deleting or modifying the roster item.- Returns:
- The action.
-
getName
public final String getName()
Gets the suggested name.- Returns:
- The name.
-
-