public class ContactGibberishImpl extends AbstractContact
Constructor and Description |
---|
ContactGibberishImpl(java.lang.String id,
ProtocolProviderServiceGibberishImpl parentProvider)
Creates an instance of a meta contact with the specified string used
as a name and identifier.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns a String that can be used for identifying the contact.
|
java.lang.String |
getDisplayName()
Returns a String that could be used by any user interacting modules
for referring to this contact.
|
byte[] |
getImage()
Returns a byte array containing an image (most often a photo or an
avatar) that the contact uses as a representation.
|
ContactGroup |
getParentContactGroup()
Returns the group that contains this contact.
|
OperationSetPersistentPresenceGibberishImpl |
getParentPresenceOperationSet()
Returns the persistent presence operation set that this contact belongs
to.
|
java.lang.String |
getPersistentData()
Returns null as no persistent data is required and the contact address is
sufficient for restoring the contact.
|
PresenceStatus |
getPresenceStatus()
Returns the status of the contact.
|
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the protocol provider that created the contact.
|
java.lang.String |
getStatusMessage()
Return the current status message of this contact.
|
boolean |
isLocal()
Determines whether or not this contact represents our own identity.
|
boolean |
isPersistent()
Determines whether or not this contact is being stored by the server.
|
boolean |
isResolved()
Determines whether or not this contact has been resolved against the
server.
|
(package private) void |
setParentGroup(ContactGroupGibberishImpl newParentGroup)
This method is only called when the contact is added to a new
ContactGroupGibberishImpl by the
ContactGroupGibberishImpl itself.
|
void |
setPersistent(boolean isPersistent)
Specifies whether or not this contact is being stored by the server.
|
void |
setPresenceStatus(PresenceStatus gibberishPresenceStatus)
Sets gibberishPresenceStatus as the PresenceStatus that this
contact is currently in.
|
void |
setResolved(boolean resolved)
Makes the contact resolved or unresolved.
|
java.lang.String |
toString()
Returns a string representation of this contact, containing most of its
representative details.
|
addResourceListener, equals, fireContactResourceEvent, getPersistableAddress, getResources, hashCode, isMobile, removeResourceListener, supportResources
public ContactGibberishImpl(java.lang.String id, ProtocolProviderServiceGibberishImpl parentProvider)
id
- the identifier of this contact (also used as a name).parentProvider
- the provider that created us.void setParentGroup(ContactGroupGibberishImpl newParentGroup)
newParentGroup
- the ContactGroupGibberishImpl that is now
parent of this ContactGibberishImplpublic java.lang.String getAddress()
public java.lang.String getDisplayName()
public byte[] getImage()
public PresenceStatus getPresenceStatus()
public void setPresenceStatus(PresenceStatus gibberishPresenceStatus)
gibberishPresenceStatus
- the GibberishPresenceStatus
currently valid for this contact.public ProtocolProviderService getProtocolProvider()
public boolean isLocal()
public ContactGroup getParentContactGroup()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPersistent()
public void setPersistent(boolean isPersistent)
isPersistent
- true if the contact is persistent and false
otherwise.public java.lang.String getPersistentData()
public boolean isResolved()
public java.lang.String getStatusMessage()
public void setResolved(boolean resolved)
resolved
- true to make the contact resolved; false to
make it unresolvedpublic OperationSetPersistentPresenceGibberishImpl getParentPresenceOperationSet()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.