Constructor
new BanUsersFromRoomRequest(users, room, messageopt, timeIntervalopt, timeUnitopt)
Creates a new instance of the BanUsersFromRoomRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
users | Array.<SFSUser> | The list of Users to be banned (max 10). | ||
room | SFSRoom | The object representing the Room where the ban should occur. | ||
message | string | <optional> | null | A custom message to be delivered to the Users before the action is executed. |
timeInterval | number | <optional> | 1 | The duration of the banishment. |
timeUnit | number | <optional> | TimeUnit.HOURS | The time unit of the banishment duration. |