Constructor AccountCoverage
- Namespace
- MailFathom.Application.Discovery.Presentation
- Assembly
- MailFathom.Application.dll
AccountCoverage(PresentationText, PresentationFreshness, DateTimeOffset?, DateTimeOffset?)
Initializes what one run read of one account.
public AccountCoverage(PresentationText account, PresentationFreshness freshness, DateTimeOffset? earliestReceivedAt, DateTimeOffset? latestReceivedAt)
Parameters
accountPresentationTextMailFathom's own generated identifier for the account.
freshnessPresentationFreshnessHow current the local copy of the account was when the run read it.
earliestReceivedAtDateTimeOffset?When the oldest mail the run drew on from this account arrived, or null where it drew on none.
latestReceivedAtDateTimeOffset?When the newest mail the run drew on from this account arrived, or null where it drew on none.
Exceptions
- ArgumentNullException
Thrown when
freshnessis null.- ArgumentException
Thrown when
accountis the unspecified default, when only one of the two dates is present, or when the earliest is after the latest.