CuteChat API

  •  03-11-2009, 3:16 PM

    CuteChat API

    Hello, I need so help!
     
    How can I programmatically add a contact?
     
    I've tried :
     
    CuteChat.ChatPortal portal = CuteChat.AppSystem.Instance.GetCurrentPortal();
    CuteChat.AppChatIdentity chatIdentity =
     
    new CuteChat.AppChatIdentity("someone@whatever.com", false,
    "someone@whatever.com"
    ,
    HttpContext.Current.Request.UserHostAddress);0
    portal.DataManager.AddContact(chatIdentity, "someonefriend@whatever.com");
     
    I get strange behaviors in database, for example, in column CuteChat4_User.UserId, instead of User:someone@whatever.com, the 'User:' string disapear.
    Also data in column CuteChat4_User.BuildinContacts is set to NULL.
     
    Thank you.
    Dave. 
    Filed under:
View Complete Thread