Creates a new CreateRoomRequest instance.

Namespace: Sfs2X.Requests
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public CreateRoomRequest(
	RoomSettings settings,
	bool autoJoin,
	Room roomToLeave
)

Parameters

settings
Type: Sfs2X.Requests..::..RoomSettings
An object containing the Room configuration settings.
autoJoin
Type: System..::..Boolean
If true, the Room is joined as soon as it is created (default = false).
roomToLeave
Type: Sfs2X.Entities..::..Room
An object representing the Room that should be left if the new Room is auto-joined (default = null).

Remarks

The instance must be passed to the SmartFox.Send method for the request to be performed.

See Also