[icq-devel] How to move contact between groups in roster?



christophe.minguet (freesurf) c.minguet at freesurf.fr
Tue Jul 15 19:16:28 CEST 2003


Hi ! 
Here is my "move contact" sequence : 

I made this : 
    protocol.sendMessage(protocol.CLI_ADDSTART());
    protocol.sendMessage(protocol.CLI_ADDBUDDY(contact.getUin(),
newGroup.getId(), 0x0000, contact.getNickname(), contact.getId()));
    protocol.sendMessage(protocol.CLI_DELETEBUDDY(contact.getUin(),
oldGroup.getId(), 0x0000, contact.getNickname(), contact.getId()));
    protocol.sendMessage(protocol.CLI_ADDEND());


With
 public IcqMessage CLI_ADDBUDDY(String uin, int group, int groupType,
String nickname, int randomContactId);  // SNAC 0x13,8
 public IcqMessage CLI_DELETEBUDDY(String uin, int group, int groupType,
String nickname, int contactId); // SNAC 0x13,A

Updating groups can't be used for that i think ...
Hope it will help
C u 





More information about the icq-devel mailing list