/ GUNRPG.Infrastructure / Persistence / InfiledOperator.cs
InfiledOperator.cs
 1  namespace GUNRPG.Infrastructure.Persistence;
 2  
 3  /// <summary>
 4  /// LiteDB document representing an operator that has been infiled (snapshot taken)
 5  /// for offline play. Stored in the "infiled_operators" collection.
 6  /// </summary>
 7  public class InfiledOperator
 8  {
 9      /// <summary>
10      /// The operator ID (same as the server-side operator ID).
11      /// </summary>
12      public string Id { get; set; } = string.Empty;
13  
14      /// <summary>
15      /// JSON snapshot of the full operator state at infil time.
16      /// </summary>
17      public string SnapshotJson { get; set; } = string.Empty;
18  
19      /// <summary>
20      /// UTC timestamp of when the infil occurred.
21      /// </summary>
22      public DateTime InfiledUtc { get; set; }
23  
24      /// <summary>
25      /// Whether this is the currently active infiled operator.
26      /// </summary>
27      public bool IsActive { get; set; }
28  }