2.3 KiB
2.3 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T16:07:34.968095+00:00 | zai-org/GLM-5-FP8 | 1 | 9d1faa44d38bcfed |
ChannelCodes
Purpose
This module defines event types for the Channel Codes subsystem within the DTS application. It provides pub/sub event definitions used to broadcast changes to channel code views and to notify the system when channel codes have been committed, carrying metadata about the committed code and user permissions.
Public Interface
ChannelCodesViewChangedEvent (class, inherits PubSubEvent<DTS.Common.Enums.IsoViewMode>)
- Event payload:
DTS.Common.Enums.IsoViewMode(enum value) - Purpose: Broadcasts when the channel codes view mode has changed.
ChannelCodeCommittedEvent (class, inherits PubSubEvent<ChannelCodeCommittedEventArgs[]>)
- Event payload: Array of
ChannelCodeCommittedEventArgs - Purpose: Broadcasts when one or more channel codes have been committed.
ChannelCodeCommittedEventArgs (class)
- Constructor:
ChannelCodeCommittedEventArgs(ChannelEnumsAndConstants.ChannelCodeType channelCodeType, string code, string name, bool canUserCommitChannelCodes) - Properties:
ChannelCodeType(ChannelEnumsAndConstants.ChannelCodeType) - The type of channel code.Code(string) - The code identifier.Name(string) - The display name.CanUserCommitChannelCodes(bool) - Indicates whether the user submitting the event has write privilege for channel codes.
Invariants
ChannelCodeCommittedEventArgsproperties are set only via constructor and are read-only (private setters).ChannelCodeCommittedEventpublishes an array of event args, not a single instance.
Dependencies
- Depends on:
Prism.Events(forPubSubEvent<T>base class),DTS.Common.Enums(forIsoViewMode),DTS.Common.Enums.Channels(forChannelEnumsAndConstants.ChannelCodeType).
Gotchas
- The file
ChannelCodesViewChangedEvent.cssuppresses the ReSharper namespace check, suggesting the file location may not match the declared namespace (DTS.Common.Eventsvs. expectedDTS.Common.Events.ChannelCodes). This could cause confusion when locating the class.