Table of Contents

Class UserNoticeComposition

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

What a notice's composer is given when one user's mail of the notice is due.

public sealed record UserNoticeComposition : IEquatable<UserNoticeComposition>
Inheritance
UserNoticeComposition
Implements
Inherited Members

Remarks

An occurrence means "this user may have something to hear about", not "this is what to tell them". What the mail says is read from the host's state now, which is why the occurrences are given here as hints at where to look and not as the content.

Properties

LastMail

What the last mail of this notice to this user covered and when; empty when there was none.

public required UserNoticeCoverage LastMail { get; init; }

Property Value

UserNoticeCoverage

NoticeKey

The key of the notice.

public required string NoticeKey { get; init; }

Property Value

string

Now

The time the mail is being composed, in UTC.

public required DateTime Now { get; init; }

Property Value

DateTime

TeamKeys

The teams the waiting occurrences belong to, each once: a person in two teams gets one mail covering both.

public required string[] TeamKeys { get; init; }

Property Value

string[]

UserKey

The key of the user the mail is for.

public required string UserKey { get; init; }

Property Value

string

Waiting

The occurrences waiting, oldest first, at most MaxItemsPerMail.

public required UserNoticeWaiting[] Waiting { get; init; }

Property Value

UserNoticeWaiting[]