|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jml.impl.MsnUserImpl
net.sf.jml.impl.MsnContactImpl
public class MsnContactImpl
This class implements the MsnContact interface.
| Constructor Summary | |
|---|---|
MsnContactImpl(MsnContactList contactList)
Creates a new MsnContact instace. |
|
| Method Summary | |
|---|---|
void |
addBelongGroup(String groupId)
Add a new group to which this MsnContact belongs to. |
boolean |
belongGroup(MsnGroup group)
Is belong the group. |
boolean |
equals(Object obj)
|
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 |
getCurrentMedia()
Retrieves the current media for this MsnContact. |
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. |
int |
getListNumber()
Retrieves the location in the list for this MsnContact. |
String |
getPersonalMessage()
The personal message assigned to the user. |
int |
hashCode()
|
boolean |
isInList(MsnList list)
Judge is in the MsnList. |
void |
removeBelongGroup(String groupId)
Removes this MsnContact from the given group. |
void |
setAvatar(MsnObject avatar)
Sets the new avatar for this MsnContact. |
void |
setCurrentMedia(String currentMedia)
Sets the new current media for this MsnContact. |
void |
setEmail(Email email)
|
void |
setFriendlyName(String friendlyName)
Sets a new friendly name for this contact. |
void |
setId(String id)
Sets the new Runtime identifier for this MsnContact. |
void |
setInList(MsnList list,
boolean b)
Set this MsnContact in the given list. |
void |
setListNumber(int listNumber)
Sets the new location in the list. |
void |
setPersonalMessage(String msg)
Sets a new personal message for this MsnContact. |
String |
toString()
|
| Methods inherited from class net.sf.jml.impl.MsnUserImpl |
|---|
getClientId, getDisplayName, getEmail, getOldDisplayName, getOldStatus, getProperties, getStatus, getTelephone, setClientId, setDisplayName, setStatus, setTelephone |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.jml.MsnUser |
|---|
getClientId, getDisplayName, getEmail, getOldDisplayName, getOldStatus, getProperties, getStatus |
| Constructor Detail |
|---|
public MsnContactImpl(MsnContactList contactList)
contactList - MsnContactList to which this MsnContact belongs to.| Method Detail |
|---|
public MsnContactList getContactList()
MsnContact
getContactList in interface MsnContactMsnContact.getContactList()public String getId()
MsnContactWhen login with MSNP8/MSNP9, will use email instead.
getId in interface MsnContactMsnContact.getId()public void setId(String id)
id - New Runtime identifier for this MsnContact.public String getFriendlyName()
MsnContact
getFriendlyName in interface MsnContactMsnContact.getFriendlyName()public void setFriendlyName(String friendlyName)
friendlyName - New friendly name for this contact.public int getListNumber()
public void setListNumber(int listNumber)
listNumber - New location in the list.
public void setInList(MsnList list,
boolean b)
list - Instance of the list.b - True to add to the list and false to remove from it.public boolean isInList(MsnList list)
MsnContact
isInList in interface MsnContactlist - MsnList
MsnContact.isInList(MsnList)public MsnGroup[] getBelongGroups()
MsnContact
getBelongGroups in interface MsnContactMsnContact.getBelongGroups()public boolean belongGroup(MsnGroup group)
MsnContact
belongGroup in interface MsnContactgroup - MsnGroup
MsnContact.belongGroup(MsnGroup)public void addBelongGroup(String groupId)
groupId - Identifier of the group.public void removeBelongGroup(String groupId)
groupId - Group Identifier from which this MsnContact must be
removed from.public String getPersonalMessage()
MsnContact
getPersonalMessage in interface MsnContactMsnContact.getPersonalMessage()public void setPersonalMessage(String msg)
msg - New personal Message.public String getCurrentMedia()
public void setCurrentMedia(String currentMedia)
currentMedia - New Current media for this MsnContact.public MsnObject getAvatar()
MsnContact
getAvatar in interface MsnContactMsnContact.getAvatar()public void setAvatar(MsnObject avatar)
avatar - Instance of the new Avatar.public void setEmail(Email email)
setEmail in class MsnUserImplMsnUserImpl.setEmail(Email)public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()
|
JML | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||