public void Add(string username, string text) { message msg = new message(username, text); messages.Add(msg); Console.WriteLine(messages.Count); }
public void Add(message ms) { ms.timestamp = DateTime.UtcNow; messages.Add(ms); Console.WriteLine(messages.Count); }
public void Add(string username, string text) { message msg = new message(username, text); messages.Add(msg); }
public void Add(message ms) { ms.timestamp = DateTime.Now.ToString("dd MMM H:mm"); messages.Add(ms); Console.WriteLine(messages.Count); }
public void Add(string username) { message msg = new message(username); messages.Add(msg); }