Click or drag to resize

QuickJoinOrCreateRoomRequest Constructor (MatchExpression, ListString, RoomSettings, Room)

Creates a new QuickJoinOrCreateRoomRequest instance.

Namespace:  Sfs2X.Requests
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public QuickJoinOrCreateRoomRequest(
	MatchExpression matchExpression,
	List<string> groupList,
	RoomSettings settings,
	Room roomToLeave
)

Parameters

matchExpression
Type: Sfs2X.Entities.MatchMatchExpression
A matching expression that the system will use to search a Room where to join the current user.
groupList
Type: System.Collections.GenericListString
A list of group names to further filter the search; if null, all groups will be searched.
settings
Type: Sfs2X.RequestsRoomSettings
If no Rooms are found through the matching expression, a new Room with the passed settings will be created and the user will auto-join it.
roomToLeave
Type: Sfs2X.EntitiesRoom
An object representing the Room that the user should leave when joining the game. Default is null.
Remarks
The instance must be passed to the SmartFox.Send method for the request to be performed.
See Also