|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.msn.ContactMsnImpl
public class ContactMsnImpl
The Msn implementation of the service.protocol.Contact interface.
| Constructor Summary | |
|---|---|
ContactMsnImpl(net.sf.jml.MsnContact contact,
ServerStoredContactListMsnImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
Creates an MsnContactImpl |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getAddress()
Returns the Msn Userid of this contact |
String |
getDisplayName()
Returns a String that could be used by any user interacting modules for referring to this contact. |
byte[] |
getImage()
Returns an avatar if one is already present or null in case it is not in which case it the method also queues the contact for image updates. |
(package private) byte[] |
getImage(boolean retrieveIfNecessary)
Returns a reference to the image assigned to this contact. |
ContactGroup |
getParentContactGroup()
Returns a reference to the contact group that this contact is currently a child of or null if the underlying protocol does not suppord persistent presence. |
String |
getPersistentData()
Returns the persistent data |
PresenceStatus |
getPresenceStatus()
Returns the status of the contact as per the last status update we've received for it. |
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the protocol provider that created the contact. |
(package private) net.sf.jml.MsnContact |
getSourceContact()
Get source contact |
String |
getStatusMessage()
Return the current status message of this contact. |
int |
hashCode()
Returns a hashCode for this contact. |
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 |
setImage(byte[] imgBytes)
Set the image of the contact |
(package private) void |
setPersistent(boolean persistent)
Specifies whether this contact is to be considered persistent or not. |
void |
setPersistentData(String persistentData)
|
(package private) void |
setResolved(net.sf.jml.MsnContact entry)
Resolve this contact against the given entry |
void |
setStatusMessage(String newStatusMessage)
Changes the current status message of this contact. |
String |
toString()
Returns a string representation of this contact, containing most of its representative details. |
(package private) void |
updatePresenceStatus(PresenceStatus status)
Sets the status that this contact is currently in. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
ContactMsnImpl(net.sf.jml.MsnContact contact,
ServerStoredContactListMsnImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
contact - the contact object that we will be encapsulating.ssclCallback - a reference to the ServerStoredContactListImpl
instance that created us.isPersistent - determines whether this contact is persistent or not.isResolved - specifies whether the contact has been resolved against
the server contact list| Method Detail |
|---|
public String getAddress()
getAddress in interface Contactpublic byte[] getImage()
getImage in interface Contactbyte[] getImage(boolean retrieveIfNecessary)
retrieveIfNecessary - specifies whether the method should queue
this contact for avatar update from the server.
void setImage(byte[] imgBytes)
imgBytes - the new image we'd like to assign this contact.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
public String toString()
toString in class Objectvoid updatePresenceStatus(PresenceStatus status)
status - the MsnStatusEnum that this contact is currently in.public PresenceStatus getPresenceStatus()
getPresenceStatus in interface Contactpublic String getDisplayName()
getDisplayName in interface Contactpublic ContactGroup getParentContactGroup()
getParentContactGroup in interface Contactpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface Contactpublic boolean isPersistent()
isPersistent in interface Contactvoid setPersistent(boolean persistent)
persistent - true if the buddy is to be considered persistent and
false for volatile.void setResolved(net.sf.jml.MsnContact entry)
entry - the server stored entrypublic String getPersistentData()
getPersistentData in interface Contactpublic boolean isResolved()
isResolved in interface Contactpublic void setPersistentData(String persistentData)
net.sf.jml.MsnContact getSourceContact()
public String getStatusMessage()
getStatusMessage in interface Contactpublic void setStatusMessage(String newStatusMessage)
newStatusMessage - the new message.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||