Beispiel #1
0
        static internal void EditMessage(Users.Message d)
        {
            string textToOverwrite = $"From:{d.Sender} To:{d.Receiver} At: {d.Datetime} | {d.Content} *MESSAGE EDITED AT {DateTime.UtcNow}*";
            string path            = Path + $"\\MessageID{d.MessageId}.txt";

            File.WriteAllText(path, textToOverwrite);
        }
Beispiel #2
0
        static internal void NewMessage(Users.Message d)
        {
            string textToWrite = $"From:{d.Sender} To:{d.Receiver} At: {d.Datetime} | {d.Content}";
            string path        = Path + $"\\MessageID{d.MessageId}.txt";

            File.WriteAllText(path, textToWrite);
        }
Beispiel #3
0
        static internal void DeleteMessage(Users.Message d)
        {
            string path = Path + $"\\MessageID{d.MessageId}.txt";

            File.Delete(path);
        }