|  | SmartFoxServer 2X C++ API
    | 
Send a custom data Object to all users in a Room or a sub-selection of them More...
#include <ObjectMessageRequest.h>
Inherits Sfs2X::Requests::GenericMessageRequest.
| Public Member Functions | |
| ObjectMessageRequest (boost::shared_ptr< ISFSObject > obj, boost::shared_ptr< Room > targetRoom, boost::shared_ptr< vector< boost::shared_ptr< User > > > recipients) | |
| Constructor  More... | |
| ObjectMessageRequest (boost::shared_ptr< ISFSObject > obj, boost::shared_ptr< Room > targetRoom) | |
| ObjectMessageRequest(ISFSObject obj, Room targetRoom, ICollection<User> recipients)  More... | |
| ObjectMessageRequest (boost::shared_ptr< ISFSObject > obj) | |
| ObjectMessageRequest(ISFSObject obj, Room targetRoom, ICollection<User> recipients)  More... | |
Send a custom data Object to all users in a Room or a sub-selection of them
(If you are familiar with SmartFoxServer 1.x this request the equivalent of sendObject)
The request allow to send a custom data object to all users in the same Room. A typical use of this request is for sending game moves to other players
| Sfs2X::Requests::ObjectMessageRequest::ObjectMessageRequest | ( | boost::shared_ptr< ISFSObject > | obj, | 
| boost::shared_ptr< Room > | targetRoom, | ||
| boost::shared_ptr< vector< boost::shared_ptr< User > > > | recipients | ||
| ) | 
Constructor
| obj | the custom object | 
| targetRoom | an optional target room. This room must be joined and by default it is the last joined Room | 
| recipients | an optional selection of Users in the target Room (by default the message is sent to all Users) | 
| Sfs2X::Requests::ObjectMessageRequest::ObjectMessageRequest | ( | boost::shared_ptr< ISFSObject > | obj, | 
| boost::shared_ptr< Room > | targetRoom | ||
| ) | 
ObjectMessageRequest(ISFSObject obj, Room targetRoom, ICollection<User> recipients)
| Sfs2X::Requests::ObjectMessageRequest::ObjectMessageRequest | ( | boost::shared_ptr< ISFSObject > | obj | ) | 
ObjectMessageRequest(ISFSObject obj, Room targetRoom, ICollection<User> recipients)