Exemplo n.º 1
0
        // 305
        private void OnPrivateMessageEvent(object sender, int messageId, string messageName, string message)
        {
            if (PrivateMessageEvent != null) {
                var words = SplitMessage(message);

                var userId = int.Parse(words[0]);
                var parsedMessage = words[1];

                var m = new MessageEventArgs_305309(messageId, messageName, userId, parsedMessage);

                PrivateMessageEvent(this, m);
            }
        }
 private void OnPrivateMessageEvent(object sender, MessageEventArgs_305309 messageEventArgs)
 {
     var u = model.Server.PublicChat.Users.GetUser(messageEventArgs.UserId);
     privateMessageModel.AddReceivedPrivateMessage(new PrivateMessageItem(u, messageEventArgs.Message));
 }
Exemplo n.º 3
0
        // 309
        private void OnBroadcastMessageEvent(object sender, int messageId, string messageName, string message)
        {
            if (BroadcastMessageEvent != null) {
                var w = SplitMessage(message);
                var userId = int.Parse(w[1]);
                var parsedMessage = w[2];

                var m = new MessageEventArgs_305309(messageId, messageName, userId, parsedMessage);

                BroadcastMessageEvent(this, m);
            }
        }