Creates a new JoinRoomRequest instance.Namespace: Sfs2X.Requests
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 22.214.171.124 (1.7.3)
public JoinRoomRequest( Object id, string pass, Nullable<int> roomIdToLeave, bool asSpectator )
The id or the name of the Room to be joined.
The password of the Room, in case it is password protected (default = null).
- Type: <(Of <(<'>)>)>
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).
true to join the Room as a spectator (in Game Rooms only) (default = false).
The instance must be passed to the SmartFox.Send method for the request to be performed.