Files

53 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- Common/DTS.Common/Enums/GroupTemplates/GroupTemplateChannelFields.cs
- Common/DTS.Common/Enums/GroupTemplates/GroupTemplateFields.cs
generated_at: "2026-04-17T16:37:50.343998+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "e1b5d92a7a788416"
---
# Documentation: Group Template Field Enums
## 1. Purpose
This module defines two enumerations, `GroupTemplateFields` and `GroupTemplateChannelFields`, which serve as strongly-typed identifiers for properties within the Group Templates domain. They likely function as keys for data mapping, validation logic, reflection operations, or UI binding, ensuring consistency when referencing specific fields of a Group Template or its associated Channels.
## 2. Public Interface
### Enum: `GroupTemplateFields`
**Namespace:** `DTS.Common.Enums.GroupTemplates`
**Underlying Type:** `int` (default)
Defines the fields available on a Group Template entity.
| Member Name | Integer Value (Implicit) |
| :--- | :--- |
| `Name` | 0 |
| `Description` | 1 |
| `Channels` | 2 |
| `LastModifiedBy` | 3 |
| `LastModified` | 4 |
| `AssociatedGroups` | 5 |
### Enum: `GroupTemplateChannelFields`
**Namespace:** `DTS.Common.Enums.GroupTemplates`
**Underlying Type:** `int` (default)
Defines the fields available on a Channel object within a Group Template.
| Member Name | Integer Value (Implicit) |
| :--- | :--- |
| `Required` | 0 |
| `Name` | 1 |
| `ISOCode` | 2 |
| `Custom` | 3 |
| `DisplayOrder` | 4 |
## 3. Invariants
1. **Implicit Values:** Since no explicit values are assigned in the source, the members rely on C# default indexing starting at `0` and incrementing by `1`.
2. **Value Stability:** The integrity of these enums relies on the source code order remaining unchanged. Inserting a new member at the beginning or middle of the list would shift the integer values of subsequent members, which could break serialization or persistence logic if stored as integers.
## 4. Dependencies
* **Dependencies (Imports):** None. The files rely solely on the default `System` namespace implicitly available in C#.
* **Consumers:** Unknown from the source alone. These types are likely consumed by services, repositories, or UI components within the