Struct CalendarEventTitle
- Namespace
- MailFathom.Domain.Calendar
- Assembly
- MailFathom.Domain.dll
Names what an event is, in the words of whoever put it on the calendar.
public readonly record struct CalendarEventTitle : IEquatable<CalendarEventTitle>
- Implements
- Inherited Members
Remarks
Three writers reach this value and none of them is trusted: a person typing into the client, a model reading a date
out of a message, and an .ics file somebody was handed. A title is then drawn in a list beside the other
events and read back in an answer, so a control character would end the line it is on and a bidirectional override
would render the rest of a row as text the record does not contain. Both are refused rather than stripped, because a
person who typed one is told the title was not accepted instead of being shown a different title than they wrote.
This is personal data the moment it says who a meeting is with. Nothing logs it, records it as a metric dimension, or writes it into a failure message; CalendarEventId is what a failure names.
Fields
- MaximumLength
The greatest length a title may carry.
Properties
- IsSpecified
Gets whether this value carries a title, which the default of the struct does not.
- Value
Gets the title as it was written, trimmed.
Methods
- Create(string?)
Reads a title that is expected to be one.
- TryCreate(string?, out CalendarEventTitle)
Reads a title, refusing one that is blank, too long, or carrying a character that renders as nothing.