public class BaseChatRoomSourceContact extends SortedGenericSourceContact
Modifier and Type | Field and Description |
---|---|
protected ContactQuery |
parentQuery
The parent contact query.
|
contactDetails
DATA_ID
Constructor and Description |
---|
BaseChatRoomSourceContact(java.lang.String chatRoomName,
java.lang.String chatRoomID,
ContactQuery query,
ProtocolProviderService pps)
Contsructs new chat room source contact.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChatRoomID()
Returns the id of the chat room associated with the contact.
|
java.lang.String |
getChatRoomName()
Returns the name of the chat room associated with the contact.
|
int |
getIndex()
Returns the index of this source contact in its parent group.
|
ProtocolProviderService |
getProvider()
Returns the provider of the chat room associated with the contact.
|
protected void |
initContactProperties(PresenceStatus status)
Sets the given presence status and the name of the chat room associated
with the contact.
|
compareTo
getContactAddress, getContactDetails, getContactDetails, getContactDetails, getContactSource, getDisplayDetails, getDisplayName, getImage, getPreferredContactDetail, getPresenceStatus, isDefaultImage, setContactAddress, setDisplayDetails, setDisplayName, setImage, setPresenceStatus
getData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, setData
protected final ContactQuery parentQuery
public BaseChatRoomSourceContact(java.lang.String chatRoomName, java.lang.String chatRoomID, ContactQuery query, ProtocolProviderService pps)
chatRoomName
- the name of the chat room associated with the room.chatRoomID
- the id of the chat room associated with the room.query
- the query associated with the contact.pps
- the protocol provider of the contact.protected void initContactProperties(PresenceStatus status)
status
- the presence status to be set.public java.lang.String getChatRoomID()
public java.lang.String getChatRoomName()
public ProtocolProviderService getProvider()
public int getIndex()
getIndex
in interface SourceContact
getIndex
in class SortedGenericSourceContact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.