Click or drag to resize
ChatServiceCreateOneToOneChatRoom Method
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.2.23
Syntax
C#
public ChatGeneralResponse<ChatRoomData> CreateOneToOneChatRoom(
	int invitedChatUserID
)

Parameters

invitedChatUserID
Type: SystemInt32
ID of invited chat user

Return Value

Type: ChatGeneralResponseChatRoomData
Newly created chat room (or the old one if exists)

Implements

IChatServiceCreateOneToOneChatRoom(Int32)
See Also