Re: I want to add friends of my ektron friend control to messenger directly with the help of api or method

  •  08-03-2010, 9:23 PM

    Re: I want to add friends of my ektron friend control to messenger directly with the help of api or method

    Hi Marium,

    The code below to show you how to add user "macro" into the friend list of user "merry".

    1. CuteChat.ChatPortal portal = CuteChat.ChatSystem.Instance.GetCurrentPortal();   
    2.         lock (portal)   
    3.         {   
    4.             CuteChat.ChatIdentity myid = new CuteChat.AppChatIdentity("nickname"false"User:merry""0.0.0.0");   
    5.             portal.DataManager.AddContact(myid, "User:macro");   
    6.         }  
    Note: format "User:merry" is necessary.
    Regards,
     
    Ken

     

     

View Complete Thread