This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/src/Nitride.Temporal/DateIndex.cs
2022-06-27 23:38:50 -05:00

33 lines
808 B
C#

using System.Collections.Generic;
using Gallium;
namespace Nitride.Temporal;
public class DateIndex
{
public DateIndex(string key, IReadOnlyList<Entity> entries, IReadOnlyList<Entity> indexes)
{
this.Key = key;
this.Entries = entries;
this.Indexes = indexes;
}
/// <summary>
/// Gets the list of entries that are in this index.
/// </summary>
public IReadOnlyList<Entity> Entries { get; }
/// <summary>
/// Gets the ordered list of nested indexes, if there are any. This will be an
/// empty list if the index has no
/// sub-index.
/// </summary>
public IReadOnlyList<Entity> Indexes { get; }
/// <summary>
/// Gets the key for the index, which is a formatted date.
/// </summary>
public string Key { get; }
}