CuteChat API

Last post 03-24-2009, 10:40 PM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  03-11-2009, 3:16 PM 49768

    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("[email protected]", false,
    "[email protected]"
    ,
    HttpContext.Current.Request.UserHostAddress);0
    portal.DataManager.AddContact(chatIdentity, "[email protected]");
     
    I get strange behaviors in database, for example, in column CuteChat4_User.UserId, instead of User:[email protected], the 'User:' string disapear.
    Also data in column CuteChat4_User.BuildinContacts is set to NULL.
     
    Thank you.
    Dave. 
    Filed under:
  •  03-11-2009, 11:50 PM 49785 in reply to 49768

    Re: CuteChat API

    Hi,
     
    Please use "User:[email protected]" for the first parameter.
     
    Because in CuteChat , it use "User:" for the registered users , and "Guest:" for the anonymous users.
     
    Regards,
    Terry
     
  •  03-12-2009, 2:37 PM 49819 in reply to 49785

    Re: CuteChat API

    Thank you for your answer.
     
    Does this means I can set up an anonymous chat session by
    registering one of the user user the "Guest" string?
  •  03-24-2009, 10:40 PM 50247 in reply to 49819

    Re: CuteChat API

    Hi,
     
    for the anonymous , you can just need return null AppChatIdentity
     
    Regards,
    Terry
View as RSS news feed in XML