public interface SourceContact
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_ID
The key that can be used to store SourceContact ids
where need it.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContactAddress()
Returns the address of the contact.
|
java.util.List<ContactDetail> |
getContactDetails()
Returns a list of available contact details.
|
java.util.List<ContactDetail> |
getContactDetails(java.lang.Class<? extends OperationSet> operationSet)
Returns a list of all ContactDetails supporting the given
OperationSet class.
|
java.util.List<ContactDetail> |
getContactDetails(ContactDetail.Category category)
Returns a list of all ContactDetails corresponding to the given
category.
|
ContactSourceService |
getContactSource()
Returns the parent ContactSourceService from which this contact
came from.
|
java.lang.Object |
getData(java.lang.Object key)
Gets the user data associated with this instance and a specific key.
|
java.lang.String |
getDisplayDetails()
Returns the display details of this search contact.
|
java.lang.String |
getDisplayName()
Returns the display name of this search contact.
|
byte[] |
getImage()
An image (or avatar) corresponding to this search contact.
|
int |
getIndex()
Returns the index of this source contact in its parent.
|
ContactDetail |
getPreferredContactDetail(java.lang.Class<? extends OperationSet> operationSet)
Returns the preferred ContactDetail for a given
OperationSet class.
|
PresenceStatus |
getPresenceStatus()
Returns the status of the source contact.
|
boolean |
isDefaultImage()
Whether the current image returned by @see #getImage() is the one
provided by the SourceContact by default, or is a one used and obtained
from external source.
|
void |
setContactAddress(java.lang.String contactAddress)
Sets the address of the contact.
|
void |
setData(java.lang.Object key,
java.lang.Object value)
Sets a user-specific association in this instance in the form of a
key-value pair.
|
static final java.lang.String DATA_ID
java.lang.String getDisplayName()
java.lang.String getContactAddress()
ContactSourceService getContactSource()
java.lang.String getDisplayDetails()
java.util.List<ContactDetail> getContactDetails()
java.util.List<ContactDetail> getContactDetails(java.lang.Class<? extends OperationSet> operationSet)
operationSet
- the OperationSet class we're looking forjava.util.List<ContactDetail> getContactDetails(ContactDetail.Category category) throws OperationNotSupportedException
category
- the OperationSet class we're looking forOperationNotSupportedException
- if categories aren't supported
for call history recordsContactDetail getPreferredContactDetail(java.lang.Class<? extends OperationSet> operationSet)
operationSet
- the OperationSet class, for which we would
like to obtain a ContactDetailbyte[] getImage()
boolean isDefaultImage()
java.lang.Object getData(java.lang.Object key)
key
- the key of the user data associated with this instance to be
retrievedvoid setContactAddress(java.lang.String contactAddress)
contactAddress
- the address to set.void setData(java.lang.Object key, java.lang.Object value)
The user-defined association created by this method and stored in this instance is not serialized by this instance and is thus only meant for runtime use.
The storage of the user data is implementation-specific and is thus not guaranteed to be optimized for execution time and memory use.
key
- the key to associate in this instance with the specified valuevalue
- the value to be associated in this instance with the
specified keyPresenceStatus getPresenceStatus()
int getIndex()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.