public class CallHistorySourceContact extends DataObject implements SourceContact
DATA_ID
Constructor and Description |
---|
CallHistorySourceContact(CallHistoryContactSource contactSource,
CallRecord callRecord)
Creates an instance of CallHistorySourceContact
|
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.
|
static java.lang.String |
getDateString(long date)
Returns the date string to show for the given date.
|
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.
|
getData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, setData
public CallHistorySourceContact(CallHistoryContactSource contactSource, CallRecord callRecord)
contactSource
- the contact sourcecallRecord
- the call recordpublic java.util.List<ContactDetail> getContactDetails()
getContactDetails
in interface SourceContact
public ContactSourceService getContactSource()
getContactSource
in interface SourceContact
public java.lang.String getDisplayDetails()
getDisplayDetails
in interface SourceContact
public java.lang.String getDisplayName()
getDisplayName
in interface SourceContact
public byte[] getImage()
getImage
in interface SourceContact
public java.util.List<ContactDetail> getContactDetails(java.lang.Class<? extends OperationSet> operationSet)
getContactDetails
in interface SourceContact
operationSet
- the OperationSet class we're looking forpublic java.util.List<ContactDetail> getContactDetails(ContactDetail.Category category) throws OperationNotSupportedException
getContactDetails
in interface SourceContact
category
- the OperationSet class we're looking forOperationNotSupportedException
- if categories aren't supported
for call history recordspublic ContactDetail getPreferredContactDetail(java.lang.Class<? extends OperationSet> operationSet)
getPreferredContactDetail
in interface SourceContact
operationSet
- the OperationSet class, for which we would
like to obtain a ContactDetailpublic static java.lang.String getDateString(long date)
date
- the date to formatpublic PresenceStatus getPresenceStatus()
getPresenceStatus
in interface SourceContact
public int getIndex()
getIndex
in interface SourceContact
public java.lang.String getContactAddress()
getContactAddress
in interface SourceContact
public void setContactAddress(java.lang.String contactAddress)
setContactAddress
in interface SourceContact
contactAddress
- the address to set.public boolean isDefaultImage()
isDefaultImage
in interface SourceContact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.