public class ContactResourceJabberImpl extends ContactResource
BASE_RESOURCE, mobile, presenceStatus, priority
Constructor and Description |
---|
ContactResourceJabberImpl(java.lang.String fullJid,
Contact contact,
java.lang.String resourceName,
PresenceStatus presenceStatus,
int priority,
boolean isMobile)
Creates a ContactResource by specifying the
resourceName, the presenceStatus and the
priority.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFullJid()
Returns the full jid corresponding to this contact resource.
|
void |
setMobile(boolean isMobile)
Changed whether contact is mobile one.
|
protected void |
setPresenceStatus(PresenceStatus newStatus)
Sets the new PresenceStatus of this resource.
|
void |
setPriority(int priority)
Changes resource priority.
|
equals, getContact, getPresenceStatus, getPriority, getResourceName, hashCode, isMobile
public ContactResourceJabberImpl(java.lang.String fullJid, Contact contact, java.lang.String resourceName, PresenceStatus presenceStatus, int priority, boolean isMobile)
fullJid
- the full jid corresponding to this contact resourcecontact
- resourceName
- presenceStatus
- priority
- public java.lang.String getFullJid()
protected void setPresenceStatus(PresenceStatus newStatus)
newStatus
- the new PresenceStatus to setpublic void setMobile(boolean isMobile)
isMobile
- whether contact is mobile one.public void setPriority(int priority)
priority
- the new priority
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.