JML

net.sf.jml
Interface MsnContact

All Superinterfaces:
MsnUser
All Known Implementing Classes:
MsnContactImpl

public interface MsnContact
extends MsnUser

Msn Contact. See http://www.hypothetic.org/docs/msn/notification/get_details.php "Background information" section.

Author:
Roger Chen, Angel Barragán Chacón

Method Summary
 boolean belongGroup(MsnGroup group)
          Is belong the group.
 MsnObject getAvatar()
          Retrieves the MsnObject for the avatar of this contact.
 MsnGroup[] getBelongGroups()
          Get the groups which the user belongs.
 MsnContactList getContactList()
          Get the contact list the contact belongs to.
 String getFriendlyName()
          The name that MsnOwner assigned to the user.
 String getId()
          MSNP10/MSNP11 protocol use a GUID to differentiate user, not use user's email.
 String getPersonalMessage()
          The personal message assigned to the user.
 boolean isInList(MsnList list)
          Judge is in the MsnList.
 
Methods inherited from interface net.sf.jml.MsnUser
getClientId, getDisplayName, getEmail, getOldDisplayName, getOldStatus, getProperties, getStatus
 

Method Detail

getContactList

MsnContactList getContactList()
Get the contact list the contact belongs to.

Returns:
contact list

getId

String getId()
MSNP10/MSNP11 protocol use a GUID to differentiate user, not use user's email. If user not in FL, will use email instead.

When login with MSNP8/MSNP9, will use email instead.

Returns:
id

getFriendlyName

String getFriendlyName()
The name that MsnOwner assigned to the user. If user not int FL, will use email instead.

Returns:
friendly name

getPersonalMessage

String getPersonalMessage()
The personal message assigned to the user.

Returns:
personal message

isInList

boolean isInList(MsnList list)
Judge is in the MsnList.

Parameters:
list - MsnList
Returns:
is in the list

getBelongGroups

MsnGroup[] getBelongGroups()
Get the groups which the user belongs.

Returns:
the groups which the user belongs to

belongGroup

boolean belongGroup(MsnGroup group)
Is belong the group.

Parameters:
group - MsnGroup
Returns:
is belong the group

getAvatar

MsnObject getAvatar()
Retrieves the MsnObject for the avatar of this contact.

Returns:
Instance of MsnObject with the MSN object for this contact.

JML