Creates a new PublicMessageRequest instance.

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

Syntax

C#
public PublicMessageRequest(
	string message,
	ISFSObject parameters,
	Room targetRoom
)

Parameters

message
Type: System..::..String
The message to be sent to all the users in the target Room.
parameters
Type: Sfs2X.Entities.Data..::..ISFSObject
An instance of SFSObject containing additional custom parameters to be sent to the message recipients (for example the color of the text, etc). Default value is null.
targetRoom
Type: Sfs2X.Entities..::..Room
The object corresponding to the Room where the message should be dispatched; if null, the last Room joined by the user is used (default = null).

Remarks

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

See Also