Click or drag to resize

JoinRoomRequest Constructor (Object, String, NullableInt32, Boolean)

Creates a new JoinRoomRequest instance.

Namespace:  Sfs2X.Requests
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public JoinRoomRequest(
	Object id,
	string pass,
	int? roomIdToLeave,
	bool asSpectator
)

Parameters

id
Type: SystemObject
The id or the name of the Room to be joined.
pass
Type: SystemString
The password of the Room, in case it is password protected (default = null).
roomIdToLeave
Type: SystemNullableInt32
The id of a previously joined Room that the user should leave when joining the new Room. By default, the last joined Room is left; if a negative number is passed, no previous Room is left (default = null).
asSpectator
Type: SystemBoolean
true to join the Room as a spectator (in Game Rooms only) (default = false).
Remarks
The instance must be passed to the SmartFox.Send method for the request to be performed.
See Also