12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- namespace Flyinsono.Client.Test
- {
- public class LogEntity
- {
- /// <summary>
- /// Gets or sets the default Id for the log.
- /// </summary>
- public string Id { get; set; }
- /// <summary>
- /// Gets or sets the time of this log.
- /// </summary>
- public DateTime Time { get; set; }
- /// <summary>
- /// Who is log
- /// </summary>
- public string Owner { get; set; }
- /// <summary>
- /// Gets or sets the <see cref="LogLevel"/> of this log.
- /// </summary>
- public LogLevel Level { get; set; }
- /// <summary>
- /// Gets or sets the content of this log.
- /// </summary>
- public string Message { get; set; }
- public LogEntity()
- {
-
- }
- public LogEntity(DateTime time, LogLevel level, string message)
- {
- Id = Guid.NewGuid().ToString();
- Time = time;
- Level = level;
- Message = message;
- }
- }
- }
|