Hi vince11111,
Below is an example to show you how to add user "terry" into friend list of ken.
-
Dim portal As CuteChat.ChatPortal = CuteChat.ChatSystem.Instance.GetCurrentPortal()
-
SyncLock portal
-
Dim myid As CuteChat.ChatIdentity = New CuteChat.AppChatIdentity("nickname", False, "User:ken", "0.0.0.0")
-
portal.DataManager.AddContact(myid, "User:terry")
-
End SyncLock
Regards,
Ken