Ejemplo n.º 1
0
 public void PostMessage(string senderKey, string from, string message)
 {
     var item = new RoomMessageItem()
     {
         Message = message,
         RoomId = this.RoomId,
         Sender = from,
         To = _users.JoinString(x => x.UserId, ";"),
         SenderKey = senderKey
     };
     foreach (var user in _users)
         user.PostMessage("chat_room_msg", item);
 }
Ejemplo n.º 2
0
        public void PostMessage(string senderKey, string from, string message)
        {
            var item = new RoomMessageItem()
            {
                Message   = message,
                RoomId    = this.RoomId,
                Sender    = from,
                To        = _users.JoinString(x => x.UserId, ";"),
                SenderKey = senderKey
            };

            foreach (var user in _users)
            {
                user.PostMessage("chat_room_msg", item);
            }
        }