public class ContactResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ContactResource |
BASE_RESOURCE
A static instance of this class representing the base resource.
|
protected boolean |
mobile
Whether this contact resource is a mobile one.
|
protected PresenceStatus |
presenceStatus
The presence status of this contact resource.
|
protected int |
priority
The priority of this contact source.
|
Constructor and Description |
---|
ContactResource()
Creates an empty instance of ContactResource representing the
base resource.
|
ContactResource(Contact contact,
java.lang.String resourceName,
PresenceStatus presenceStatus,
int priority,
boolean mobile)
Creates a ContactResource by specifying the
resourceName, the presenceStatus and the
priority.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Contact |
getContact()
Returns the Contact, this resources belongs to.
|
PresenceStatus |
getPresenceStatus()
Returns the presence status of this resource.
|
int |
getPriority()
Returns the priority of the resources.
|
java.lang.String |
getResourceName()
Returns the name of this resource.
|
int |
hashCode() |
boolean |
isMobile()
Whether contact is mobile one.
|
public static ContactResource BASE_RESOURCE
protected PresenceStatus presenceStatus
protected int priority
protected boolean mobile
public ContactResource()
public ContactResource(Contact contact, java.lang.String resourceName, PresenceStatus presenceStatus, int priority, boolean mobile)
contact
- the parent Contact this resource is aboutresourceName
- the name of this resourcepresenceStatus
- the presence status of this resourcepriority
- the priority of this resourcepublic Contact getContact()
public java.lang.String getResourceName()
public PresenceStatus getPresenceStatus()
public int getPriority()
public boolean isMobile()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.