Class OrganizationWriteResult
- Namespace
- MailFathom.Application.Access.Organizations
- Assembly
- MailFathom.Application.dll
What an act on an organization did, and what a refusal has to name for an administrator to act on it.
public sealed record OrganizationWriteResult : IEquatable<OrganizationWriteResult>
- Inheritance
-
OrganizationWriteResult
- Implements
- Inherited Members
Constructors
- OrganizationWriteResult(OrganizationWriteOutcome, Guid, int, string?, int, int)
What an act on an organization did, and what a refusal has to name for an administrator to act on it.
Properties
- CollidingUsername
The username the target scope already holds, where a move was refused for one and the collision could be read.
- Corrections
Gets one sentence per reason the settings policy of the target refuses a moved user's record or a moved mail account, each naming the property; empty for every outcome but RecordLeftInvalid.
- OrganizationId
The organization the act reached, which a creation reports because it minted it.
- Outcome
What the act did, or why it did nothing.
- RemainingMailAccounts
How many mail accounts stood in the way of a deletion; zero for every other outcome.
- RemainingMembers
How many members stood in the way of a deletion; zero for every other outcome.
- StandingAssignments
How many assignments a move would have left straddling two organizations: a moved user's accounts, or a moved account's users — or, for SharedOnlyInOrganization, how many users the account leaving every organization is assigned to; zero for every other outcome.
Methods
- Of(OrganizationWriteOutcome)
Gets the result of an act that changed nothing because of the outcome given.