LogMessage.cs 812 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. namespace Flyinsono.Client.Test
  3. {
  4. public class LogMessage
  5. {
  6. //Gets the owner of this log.
  7. public string Owner { get; }
  8. /// <summary>
  9. /// Gets the time of this log.
  10. /// </summary>
  11. public DateTime Time { get; }
  12. /// <summary>
  13. /// Gets the <see cref="LogLevel"/> of this log.
  14. /// </summary>
  15. public LogLevel Level { get; }
  16. /// <summary>
  17. /// Gets the content of this log.
  18. /// </summary>
  19. public string Message { get; }
  20. public LogMessage(string owner, DateTime time, LogLevel level, string message)
  21. {
  22. Owner = owner;
  23. Time = time;
  24. Level = level;
  25. Message = message;
  26. }
  27. }
  28. }