예제 #1
0
 public void AddTopic(string body)
 {
     CurrentArchiveItems.Add(
         new Topic(DateTime.Now.ToUnixTimestamp(), body)
         );
     SaveCurrentArchiveFile();
 }
예제 #2
0
 private void AddPresence(bool connect)
 {
     CurrentArchiveItems.Add(
         new Presence(connect, DateTime.Now.ToUnixTimestamp())
         );
     SaveCurrentArchiveFile();
 }
예제 #3
0
 public void AddMessage(bool incoming, string body)
 {
     CurrentArchiveItems.Add(
         new Message(incoming, DateTime.Now.ToUnixTimestamp(), body)
         );
     MessageCount += 1;
     SaveCurrentArchiveFile();
 }