Struct ContactNote
- Namespace
- MailFathom.Domain.Contacts
- Assembly
- MailFathom.Domain.dll
Holds what a user wrote about a person beyond their name and their addresses.
public readonly record struct ContactNote : IEquatable<ContactNote>
- Implements
- Inherited Members
Remarks
A note is the freest field the book has, so it is also the one most likely to hold something a user would not want read back to them by an agent: where somebody works, what was agreed, why they are being avoided. It is therefore personal data of the most sensitive kind this record carries and is treated as such everywhere — never logged, never a metric dimension, never in a failure message, and erased with the contact it belongs to.
Line breaks are kept because a note is written to be read as somebody wrote it, and a note about a person genuinely runs to more than one line. Every other character that carries no glyph of its own is refused, for the reason a name refuses all of them; MailFathom.Domain.Contacts.ContactText holds which ones those are.
Fields
- MaximumLength
The greatest length a note may carry.
Properties
- Value
Gets the note as the user wrote it, trimmed of surrounding whitespace.
Methods
- Create(string)
Creates a note from text a user supplied.
- ToString()
Returns the fully qualified type name of this instance.