ChatService CreateOneToOneChatRoom Method Kentico 8.1 API Reference
Creates new one-to-one chat room which will be accessible by current user and one more user (invited one). Display name of new room will be: {nickname_current} - {nickname_invited} Code name will be: adhoc_{id_lower}-{id_upper} ({id_lower} is the lower id of the two chat users, {id_upper} is the upper one). A current user have to manually join this room after creating it. If those two users have chatted before, the previously created room is returned. Code name is used to find previously created chat room.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

invitedChatUserID
Type: OnlineSystem Int32
ID of invited chat user

Return Value

Type: ChatGeneralResponse ChatRoomData 
Newly created chat room (or the old one if exists)
See Also