IChatServiceCreateOneToOneChatRoom 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.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax ChatGeneralResponse<ChatRoomData> CreateOneToOneChatRoom(
int invitedChatUserID
)
Parameters
- invitedChatUserID
- Type: SystemInt32
ID of invited chat user
Return Value
Type:
ChatGeneralResponseChatRoomDataNewly created chat room (or the old one if exists)
See Also