Class UserNoticeOccurrence
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Something that happened, handed to Tharga.Team.IUserNoticeRaiser so the users the notice concerns are told.
public sealed record UserNoticeOccurrence : IEquatable<UserNoticeOccurrence>
- Inheritance
-
UserNoticeOccurrence
- Implements
- Inherited Members
Remarks
The same occurrence reaches the same person once. It is identified by NoticeKey, SubjectId and Discriminator; raising it again, from this instance or another, reaches only recipients it has not reached before.
Properties
Discriminator
What tells two occurrences about the same thing apart, such as 14-days-before; null when the notice is sent once per subject.
public string Discriminator { get; init; }
Property Value
LinkPath
The site path of the thing, such as /cases/42, made absolute on the configured base address; null for no link.
public string LinkPath { get; init; }
Property Value
NoticeKey
The key of a notice in the catalogue.
public required string NoticeKey { get; init; }
Property Value
Recipients
Users named as recipients by key, such as the owner of the thing, added to whoever the catalogue's rule admits.
public string[] Recipients { get; init; }
Property Value
- string[]
SubjectId
The id of the thing the notice is about, such as a case or a key.
public required string SubjectId { get; init; }
Property Value
SubjectText
How the thing is named to a reader, the value of {subject}; the id when null.
public string SubjectText { get; init; }
Property Value
TeamKey
The team the occurrence belongs to, whose active members it may reach.
public required string TeamKey { get; init; }
Property Value
Values
The value of every placeholder the notice declares, by name.
public IReadOnlyDictionary<string, string> Values { get; init; }