| 1 | using AgentForge.Abstractions; |
| 2 | |
| 3 | namespace AgentForge.Plugin.Grouping.Core; |
| 4 | |
| 5 | public abstract class ForgeFixedSectionGroupingAxis<TItem>( |
| 6 | string id, |
| 7 | string label, |
| 8 | int order, |
| 9 | IReadOnlyList<ForgeGroupingSection> sections) : IForgeGroupingAxis<TItem> |
| 10 | { |
| 11 | public string Id => id; |
| 12 | |
| 13 | public string Label => label; |
| 14 | |
| 15 | public int Order => order; |
| 16 | |
| 17 | public abstract string GetKey(TItem item, DateTimeOffset utcNow); |
| 18 | |
| 19 | public IReadOnlyList<ForgeGroupingSection> SectionsFor( |
| 20 | IReadOnlyList<TItem> items, |
| 21 | DateTimeOffset utcNow) => sections; |
| 22 | } |
| 23 | |
View only · write via MCP/CIDE