Constructor PersonEntry
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
PersonEntry(PresentationText, EmailAddress?, PresentationText, DateTimeOffset?, IReadOnlyList<PresentationCitationId>)
Initializes one person or organization.
public PersonEntry(PresentationText displayName, EmailAddress? address, PresentationText relationship, DateTimeOffset? lastContactAt, IReadOnlyList<PresentationCitationId> sources)
Parameters
displayNamePresentationTextThe name a reader recognizes them by.
addressEmailAddress?Their address, or null where the correspondence identifies them without one.
relationshipPresentationTextWhere they stand in the correspondence, as it reads.
lastContactAtDateTimeOffset?When they were last in contact, or null where no message establishes it.
sourcesIReadOnlyList<PresentationCitationId>The citations this entry rests on.
Exceptions
- ArgumentNullException
Thrown when
sourcesis null.- ArgumentException
Thrown when a text is the unspecified default, or a citation is unspecified or named twice.