public void Consume(LoginMessage message)
        {
            var timestampString = message.Timestamp.ToString(Settings.TimeStampFormat);
            var logString       = $"{message.Username} logged in at {timestampString}";

            _messageView.Add(logString);
        }
Example #2
0
 public void Consume(LoginMessage message)
 {
     _loggedInUsers.Add(message.Username);
     _messagesView.Add($"{_loggedInUsers.Count} user(s) online");
 }
        public void Consume(LoginMessage message)
        {
            var messageString = $"User {message.Username} logged in";

            _messagesView.Add(messageString);
        }