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: 12.0.0
Syntax public 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