Constructor AuthoredMailFlagChangeResult
- Namespace
- MailFathom.Application.Mail.Mutations.Authoring
- Assembly
- MailFathom.Application.dll
AuthoredMailFlagChangeResult(StoredEmailId, MailAccountId, MailFolderAlias, IReadOnlyList<RecordedMailFlagMutation>, bool)
What one caller's flag and keyword change became: a durable record per value it asked for.
public AuthoredMailFlagChangeResult(StoredEmailId StoredEmailId, MailAccountId AccountId, MailFolderAlias FolderAlias, IReadOnlyList<RecordedMailFlagMutation> Recorded, bool IsApplied = false)
Parameters
StoredEmailIdStoredEmailIdThe email the change was asked for.
AccountIdMailAccountIdThe account that email belongs to, which is the account whose run will carry the change.
FolderAliasMailFolderAliasThe operator's own name for the folder the email is in.
RecordedIReadOnlyList<RecordedMailFlagMutation>One entry per value the request named that a record was opened for, in the order the request states them, and empty where none was.
IsAppliedboolWhether the account holds its mailbox and every value was committed to stored state.
Remarks
On an account whose source is the truth it reports what was written down rather than what a mail server has done, because at the moment this is produced no command has gone out. That is the honest answer and it is also the useful one: the record is what survives a crash, what convergence resumes, and what an operator reads when a change has not arrived, so its identity is what a caller needs in hand. On a held account the change has already happened when this is produced, and there is no record to name. The two are not exclusive: an account being restored to its source has both applied the change and opened the record its source is still owed, and reports each.