Click or drag to resize
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.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
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: ChatRoomData
ChatRoomData
See Also