Creates a new KickUserRequest instance.

Namespace: Sfs2X.Requests
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.3.0 (1.7.3)

Syntax

C#
public KickUserRequest(
	int userId,
	string message,
	int delaySeconds
)

Parameters

userId
Type: System..::..Int32
The id of the user to be kicked.
message
Type: System..::..String
A custom message to be delivered to the user before kicking him; if null, the default message configured in the SmartFoxServer 2X Administration Tool is used (default = null).
delaySeconds
Type: System..::..Int32
The number of seconds after which the user is kicked after receiving the kick message (default = 5).

Remarks

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

See Also