ObjectMessageRequest Constructor (ISFSObject, Room, ICollectionUser) |
Creates a new ObjectMessageRequest instance.
Namespace:
Sfs2X.Requests
Assembly:
SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax public ObjectMessageRequest(
ISFSObject obj,
Room targetRoom,
ICollection<User> recipients
)
Parameters
- obj
- Type: Sfs2X.Entities.DataISFSObject
An instance of SFSObject containing custom parameters to be sent to the message recipients. - targetRoom
- Type: Sfs2X.EntitiesRoom
The Room object corresponding to the Room where the message should be dispatched; if null, the last Room joined by the user is used (default = null). - recipients
- Type: System.Collections.GenericICollectionUser
A collection of User objects corresponding to the message recipients (default = null); if null, the message is sent to all users in the target Room (except the sender himself).
Remarks
The instance must be passed to the
SmartFox.Send method for the request to be performed.
See Also