public interface Contact
Modifier and Type | Method and Description |
---|---|
void |
addResourceListener(ContactResourceListener l)
Adds the given ContactResourceListener to listen for events
related to contact resources changes.
|
java.lang.String |
getAddress()
Returns a String that can be used for identifying the contact.
|
java.lang.String |
getDisplayName()
Returns a String that could be used by any user interacting modules for
referring to this contact.
|
byte[] |
getImage()
Returns a byte array containing an image (most often a photo or an avatar)
that the contact uses as a representation.
|
ContactGroup |
getParentContactGroup()
Returns a reference to the contact group that this contact is currently
a child of or null if the underlying protocol does not support persistent
presence.
|
java.lang.String |
getPersistableAddress()
Returns the persistent contact address.
|
java.lang.String |
getPersistentData()
Returns a String that can be used to create a unresolved instance of
this contact.
|
PresenceStatus |
getPresenceStatus()
Returns the status of the contact as per the last status update we've
received for it.
|
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the protocol provider that created the contact.
|
java.util.Collection<ContactResource> |
getResources()
Returns a collection of resources supported by this contact or null
if it doesn't support resources.
|
java.lang.String |
getStatusMessage()
Return the current status message of this contact.
|
boolean |
isMobile()
Whether contact is mobile one.
|
boolean |
isPersistent()
Determines whether or not this contact is being stored by the server.
|
boolean |
isResolved()
Determines whether or not this contact has been resolved against the
server.
|
void |
removeResourceListener(ContactResourceListener l)
Removes the given ContactResourceListener listening for events
related to contact resources changes.
|
boolean |
supportResources()
Indicates if this contact supports resources.
|
java.lang.String getAddress()
java.lang.String getDisplayName()
byte[] getImage()
PresenceStatus getPresenceStatus()
ContactGroup getParentContactGroup()
ProtocolProviderService getProtocolProvider()
boolean isPersistent()
boolean isResolved()
java.lang.String getPersistentData()
java.lang.String getStatusMessage()
boolean supportResources()
java.util.Collection<ContactResource> getResources()
void addResourceListener(ContactResourceListener l)
l
- the ContactResourceListener to addvoid removeResourceListener(ContactResourceListener l)
l
- the ContactResourceListener to rmovejava.lang.String getPersistableAddress()
boolean isMobile()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.