public interface OperationSetServerStoredContactInfo extends OperationSet
Various types of details have been defined in the ServerStoredDetails class and can be used with the get methods of this interface. Implementors may also define their own details by extending or instantiating the ServerStoredDetails.GenericDetail class.
Note that this is a read only Operation Set, as it only provides access to information stored by Contacts themselves, and not notes that you have been adding for them..
The OperationSetServerStoredContactInfo only concerns Contact-s other than us. For accessing and modifying the information of the user that we are logged in with, we need to use the OperationSetServerStoredAccountInfo
Modifier and Type | Interface and Description |
---|---|
static interface |
OperationSetServerStoredContactInfo.DetailsResponseListener
Retrieving details can take some time, this listener will inform
when retrieving has ended and will return the details if any.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ServerStoredDetails.GenericDetail> |
getAllDetailsForContact(Contact contact)
Returns all details existing for the specified contact.
|
java.util.Iterator<ServerStoredDetails.GenericDetail> |
getDetails(Contact contact,
java.lang.Class<? extends ServerStoredDetails.GenericDetail> detailClass)
Returns an iterator over all details that are instances of exactly the
same class as the one specified.
|
<T extends ServerStoredDetails.GenericDetail> |
getDetailsAndDescendants(Contact contact,
java.lang.Class<T> detailClass)
Returns an iterator over all details that are instances or descendants of
the specified class.
|
java.util.Iterator<ServerStoredDetails.GenericDetail> |
requestAllDetailsForContact(Contact contact,
OperationSetServerStoredContactInfo.DetailsResponseListener listener)
Requests all details existing for the specified contact.
|
<T extends ServerStoredDetails.GenericDetail> java.util.Iterator<T> getDetailsAndDescendants(Contact contact, java.lang.Class<T> detailClass)
detailClass
- one of the detail classes defined in the
ServerStoredDetails class, indicating the kind of details we're
interested in.contact
- the contact whose details we're interested in.
java.util.Iterator<ServerStoredDetails.GenericDetail> getDetails(Contact contact, java.lang.Class<? extends ServerStoredDetails.GenericDetail> detailClass)
detailClass
- one of the detail classes defined in the
ServerStoredDetails class, indicating the kind of details we're
interested in.contact
- the contact whose details we're interested in.
java.util.Iterator<ServerStoredDetails.GenericDetail> getAllDetailsForContact(Contact contact)
contact
- the specified contactjava.util.Iterator<ServerStoredDetails.GenericDetail> requestAllDetailsForContact(Contact contact, OperationSetServerStoredContactInfo.DetailsResponseListener listener)
contact
- the specified contact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.