IChatServiceCreateChatRoom Method |
Creates new chat room.
Current user have to join it manually after creating it.
Code name of this room will be: chatroom_{current_user_id}_{new_guid}
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
SyntaxChatGeneralResponse<ChatRoomData> CreateChatRoom(
string displayName,
bool isPrivate,
string password,
bool allowAnonym,
string description
)
Parameters
- displayName
- Type: SystemString
Display name of a new room (cannot be empty) - isPrivate
- Type: SystemBoolean
Indicates if this room will be private - password
- Type: SystemString
Optional password - allowAnonym
- Type: SystemBoolean
True if anonymous users can join this room (anonym is chat user without CMS.User assigned to it) - description
- Type: SystemString
Description of the chat room
Return Value
Type:
ChatGeneralResponseChatRoomDataNew chat room
See Also