Send Private Message to a list of Users
Posted: 13 Sep 2013, 10:23
Hi everyone !
I didn't find any answers to my problem in this forum
I am disappointed by the private message request:
why don't change this
*
*
into this
*
*
?
First I want a client be able to sent a private message to several users in one shot (concept of private discussions), instead of sending a burst of requests to the server for one private message in the discussions.
Second i want the server be able to intercept each message to add some data like the current time and some others. I saw this topic http://forums.smartfoxserver.com/viewto ... ers#p62548 where it seems to be not possible.
Finally have I to do my own extension ? Or is there any other alternative ?
Thanks for helping and any answers
PS:
1. Is there a way to use "ISFSObject parameters" in private message request to ask the server to broadcast the message to the concerned clients ?
2. why don't turn public and private message requests into a single request like :
3. or just defined via a request a list of users referenced by an id. The id is assigned by the server.
Then the message request can be like that:
4. How in this case the server can maintain a reference on an instance like a group of users ?
Via a database, text files, or in memory like using static variables ?
I didn't find any answers to my problem in this forum
I am disappointed by the private message request:
why don't change this
*
Code: Select all
public PrivateMessageRequest(
string message,
int recipientId,
ISFSObject parameters
)into this
*
Code: Select all
public PrivateMessageRequest(
string message,
int[] recipientsIds,
ISFSObject parameters
)?
First I want a client be able to sent a private message to several users in one shot (concept of private discussions), instead of sending a burst of requests to the server for one private message in the discussions.
Second i want the server be able to intercept each message to add some data like the current time and some others. I saw this topic http://forums.smartfoxserver.com/viewto ... ers#p62548 where it seems to be not possible.
Finally have I to do my own extension ? Or is there any other alternative ?
Thanks for helping and any answers
PS:
1. Is there a way to use "ISFSObject parameters" in private message request to ask the server to broadcast the message to the concerned clients ?
2. why don't turn public and private message requests into a single request like :
Code: Select all
public MessageRequest(
string message, // The text
int[] recipientsIds, // The concerned users limited to a definable number
bool IsPublic, //Is this a private or public message
ISFSObject parameters // How to use this
)Then the message request can be like that:
Code: Select all
public MessageRequest(
string message, // The text
int GroupOfUsers_ID, // The id of the group of users
bool IsPublic, //Is this a private or public message
ISFSObject parameters // How to use this
)Via a database, text files, or in memory like using static variables ?