Class EmailContentReadOutcome
- Namespace
- MailFathom.Application.Emails.GetEmailContent
- Assembly
- MailFathom.Application.dll
What one read produced for one of the emails it named.
public sealed record EmailContentReadOutcome : IEquatable<EmailContentReadOutcome>
- Inheritance
-
EmailContentReadOutcome
- Implements
- Inherited Members
Remarks
Exactly one of Content and Failure is present, which the factories are what guarantee. The identity is carried either way, so a caller pairs an outcome with the email it asked about rather than with the position it happened to occupy.
The outcome exists per email because a read names several: one identifier this deployment cannot serve must cost the caller that email and nothing else.
Properties
- StoredEmailId
Gets the email this outcome answers for.
Methods
- ContentUnavailable(StoredEmailId, EmailContentDefect)
Reports an email whose stored content is missing, damaged, or unreadable.
- NotFound(StoredEmailId)
Reports an email the local mailbox copy holds no row for.
- Read(ReadEmailContent)
Reports an email that was read.