Change the capacity of a Room (maxUsers and maxSpectators) at runtime.

Namespace: Sfs2X.Requests
Assembly: SmartFox2 (in SmartFox2.dll) Version: 0.9.14.0

Syntax

C#
public class ChangeRoomCapacityRequest : BaseRequest

Remarks

This request might fail if the Room was configured not be re-sizable or if the User sending the request is not the owner of the Room. Moderators and Administrator can override this last constraint.

It is possible to "shrink" the Room capacity so that maxUsers < userCount.
In this case nothing will happen to the "extra" users.
As soon as clients will leave the Room the userCount will get down to the new maxUsers value.

Inheritance Hierarchy

System..::..Object
  Sfs2X.Requests..::..BaseRequest
    Sfs2X.Requests..::..ChangeRoomCapacityRequest

See Also