Table of Contents

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

accountId MailAccountId

The account whose classifications are read.

storedEmailId StoredEmailId?

The occurrence to narrow to, or null for every occurrence.

verdict SpamVerdict?

The verdict to narrow to, or null for every verdict.

evaluatedFrom DateTimeOffset?

The earliest evaluation instant served, inclusive, or null for none.

evaluatedBefore DateTimeOffset?

The evaluation instant to stop before, exclusive, or null for none.

pageSize int?

How many classifications the page may hold, or null for DefaultPageSize.

cursor SpamClassificationHistoryCursor?

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.