Creates a new JoinRoomRequest instance.

Namespace: Sfs2X.Requests
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public JoinRoomRequest(
	Object id,
	string pass,
	Nullable<int> roomIdToLeave,
	bool asSpectator
)

Parameters

id
Type: System..::..Object
The id or the name of the Room to be joined.
pass
Type: System..::..String
The password of the Room, in case it is password protected (default = null).
roomIdToLeave
Type: System..::..Nullable<(Of <(<'Int32>)>)>
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: System..::..Boolean
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