Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Re: CuteChat API
CuteChat API
Last post 03-24-2009, 10:40 PM by
cutechat
. 3 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
03-11-2009, 3:16 PM
49768
kdave
Joined on 03-11-2009
Posts 2
CuteChat API
Reply
Quote
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:
AddFriend API
03-11-2009, 11:50 PM
49785
in reply to
49768
cutechat
Joined on 07-22-2004
Posts 2,332
Re: CuteChat API
Reply
Quote
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
kdave
Joined on 03-11-2009
Posts 2
Re: CuteChat API
Reply
Quote
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
cutechat
Joined on 07-22-2004
Posts 2,332
Re: CuteChat API
Reply
Quote
Hi,
for the anonymous , you can just need return null AppChatIdentity
Regards,
Terry