This commit is contained in:
SCM6WE
2021-09-21 10:12:29 +02:00
parent d42acbc90e
commit 697a7ad506
9 changed files with 188 additions and 45 deletions

View File

@@ -11,16 +11,18 @@ namespace PolyChat.Models
public readonly bool Foreign;
public readonly string StringTimeStamp;
public ChatMessage(DateTime Timestamp, string Msg, bool Foreign = true, string Sender= "Unknown", string Ip = "127.0.0.1")
public ChatMessage(string Msg = "", bool Foreign = true, string Sender= "Unknown", string Ip = "127.0.0.1")
{
this.Sender = Sender;
this.Timestamp = Timestamp;
this.Timestamp = DateTime.Now;
StringTimeStamp = Timestamp.ToString();
this.Msg = Msg;
this.Foreign = Foreign;
this.Ip = Ip;
}
override
public string ToString()
{