public void Consume(LoginMessage message) { var timestampString = message.Timestamp.ToString(Settings.TimeStampFormat); var logString = $"{message.Username} logged in at {timestampString}"; _messageView.Add(logString); }
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); }