Hi:
I'm developing a MSN robot by JML.During the development, I found the robot just save the new friend contact to the contactlist in this session, when it received the event when someone added the robot to its friends. When I use the MSN client to log in, the friend added by the robot is not in the contactlist.
Hence, I have this question:
Does the JML has the ability to synchronize the contactlist to the MSNServer?
Does the JML just has the ability to get the contactlist from the MSN server?
Does the MSN robot implemented by JML can only maintain the new friend contact in one session?
Thank you all!
Below are my two method override the MsnAdapter:
@Override
public void contactAddedMe(MsnMessenger pMessenger, MsnContact pContact) {
super.contactAddedMe(pMessenger, pContact);
logger.info("user: " + pContact.getEmail() + " Add me.");
try {
pMessenger.addFriend(pContact.getEmail(), pContact.getFriendlyName());
} catch (Exception e) {
logger.error("addFriend error:", e);
}
}
@Override
public void contactAddCompleted(MsnMessenger pMessenger,
MsnContact pContact, MsnList pList) {
Hi:
I'm developing a MSN robot by JML.During the development, I found the robot just save the new friend contact to the contactlist in this session, when it received the event when someone added the robot to its friends. When I use the MSN client to log in, the friend added by the robot is not in the contactlist.
Hence, I have this question:
Does the JML has the ability to synchronize the contactlist to the MSNServer?
Does the JML just has the ability to get the contactlist from the MSN server?
Does the MSN robot implemented by JML can only maintain the new friend contact in one session?
Thank you all!
Below are my two method override the MsnAdapter:
@Override
public void contactAddedMe(MsnMessenger pMessenger, MsnContact pContact) {
super.contactAddedMe(pMessenger, pContact);
logger.info("user: " + pContact.getEmail() + " Add me.");
try {
pMessenger.addFriend(pContact.getEmail(), pContact.getFriendlyName());
} catch (Exception e) {
logger.error("addFriend error:", e);
}
}
@Override
public void contactAddCompleted(MsnMessenger pMessenger,
MsnContact pContact, MsnList pList) {
super.contactAddCompleted(pMessenger, pContact, pList);
try {
pMessenger.getOwner().setDisplayName("Michael MSN");
pMessenger.sendText(pContact.getEmail(), pContact.getFriendlyName() + " Hi,add you as a friend!");
} catch (Exception e) {
logger.error("contactAddCompleted sendText error", e);
}
}