Creates a new ChangeRoomCapacityRequest instance.

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

Syntax

C#
public ChangeRoomCapacityRequest(
	Room room,
	int newMaxUsers,
	int newMaxSpect
)

Parameters

room
Type: Sfs2X.Entities..::..Room
The object corresponding to the Room whose capacity should be changed.
newMaxUsers
Type: System..::..Int32
The new maximum number of users/players who can join the Room; the -1 value can be passed not to change the Room.MaxUsers property.
newMaxSpect
Type: System..::..Int32
The new maximum number of spectators who can join the Room (for Game Rooms only); the -1 value can be passed not to change the Room.MaxSpectators property.

Remarks

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

See Also