ChatRoomHelperConvertRoomToDataAdminLevel Method |
Makes ChatRoomData from information contained in ChatRoomInfo.
If room is removed, its values are not set. Only RoomID and IsRemoved = true are returned.
Returns null if roomState is null;
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 11.0.0
Syntaxpublic static ChatRoomData ConvertRoomToDataAdminLevel(
RoomState roomState,
AdminLevelEnum userAdminLevel
)
Parameters
- roomState
- Type: CMS.ChatRoomState
Room state - userAdminLevel
- Type: CMS.ChatAdminLevelEnum
If admin level is None and room is private, the room will be returned with IsRemoved = true
Return Value
Type:
ChatRoomDataChatRoomData
See Also