Method Create
- Namespace
- MailFathom.Application.Spam.History
- Assembly
- MailFathom.Application.dll
Create(MailAccountId, StoredEmailId?, SpamVerdict?, DateTimeOffset?, DateTimeOffset?, int?, SpamClassificationHistoryCursor?)
Builds a validated query from what a caller asked for, or reports why the request names no page.
public static SpamClassificationHistoryQueryResult Create(MailAccountId accountId, StoredEmailId? storedEmailId, SpamVerdict? verdict, DateTimeOffset? evaluatedFrom, DateTimeOffset? evaluatedBefore, int? pageSize, SpamClassificationHistoryCursor? cursor)
Parameters
accountIdMailAccountIdThe account whose classifications are read.
storedEmailIdStoredEmailId?The occurrence to narrow to, or null for every occurrence.
verdictSpamVerdict?The verdict to narrow to, or null for every verdict.
evaluatedFromDateTimeOffset?The earliest evaluation instant served, inclusive, or null for none.
evaluatedBeforeDateTimeOffset?The evaluation instant to stop before, exclusive, or null for none.
pageSizeint?How many classifications the page may hold, or null for DefaultPageSize.
cursorSpamClassificationHistoryCursor?The boundary a continued walk reads beyond, or null for the first page.
Returns
- SpamClassificationHistoryQueryResult
The accepted query, or the refusal naming what the caller has to change.