Constructor ThreadCommitment
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
ThreadCommitment(PresentationText, ThreadParticipant?, DateTimeOffset?, IReadOnlyList<PresentationCitationId>)
Initializes one commitment.
public ThreadCommitment(PresentationText text, ThreadParticipant? owedBy, DateTimeOffset? dueAt, IReadOnlyList<PresentationCitationId> sources)
Parameters
textPresentationTextWhat was undertaken.
owedByThreadParticipantWho undertook it, or null where the correspondence does not say.
dueAtDateTimeOffset?When it was said to be due, or null where nothing says.
sourcesIReadOnlyList<PresentationCitationId>The citations this commitment rests on.
Exceptions
- ArgumentNullException
Thrown when
sourcesis null.- ArgumentException
Thrown when the text is the unspecified default, or a citation is unspecified or named twice.