Dispatched when the current user receives a message from a moderator user.

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

Syntax

C#
public static readonly string MODERATOR_MESSAGE

Field Value

Type: String

Remarks

This event can be caused by the ModeratorMessageRequest, KickUserRequest or BanUserRequest requests sent by a user with at least moderation privileges. Also, this event can be caused by a kick/ban action performed through the SmartFoxServer 2X Administration Tool.

The Params object contains the following parameters:

ParameterDescription
sender(User) An object representing the moderator user who sent the message.
message(string) The message sent by the moderator.
data(ISFSObject) An object containing custom parameters which might accompany the message.

Examples

See the ModeratorMessageRequest example.

See Also