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("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:
  •  03-11-2009, 11:50 PM 49785 in reply to 49768

    Re: CuteChat API

    Hi,
     
    Please use "User:someone@whatever.com" 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