| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// The person as it stands after a UC-08 update. Exposes only external-facing identifiers and |
| | | 7 | | /// has no field for <c>PasswordHash</c> or <c>Salt</c>. |
| | | 8 | | /// </summary> |
| | | 9 | | public class UpdatePersonCommandOutput : CommandOutput |
| | | 10 | | { |
| | | 11 | | /// <summary>Public identifier of the updated person.</summary> |
| | 111 | 12 | | public Guid Id { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Full name after the update.</summary> |
| | 177 | 15 | | public string Name { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary>Email address after the update.</summary> |
| | 176 | 18 | | public string Email { get; set; } = string.Empty; |
| | | 19 | | |
| | | 20 | | /// <summary>Role value after the update (see <c>Roles</c>).</summary> |
| | 98 | 21 | | public int Role { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary>Whether the email is verified; always <c>false</c> straight after an email change.</summary> |
| | 99 | 24 | | public bool EmailVerified { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary>Public identifier of the scope the person belongs to as a User; <c>null</c> otherwise.</summary> |
| | 96 | 27 | | public Guid? ScopeId { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Public identifiers of the scopes the person owns, as far as the reader may see them |
| | | 31 | | /// (FR-PE-19): every one for a System Admin and for the person themselves, and for a Scope |
| | | 32 | | /// Admin reading somebody else only those the Scope Admin owns too. Empty for non-owners. |
| | | 33 | | /// </summary> |
| | 177 | 34 | | public IEnumerable<Guid> OwnedScopeIds { get; set; } = new List<Guid>(); |
| | | 35 | | |
| | | 36 | | /// <summary>Creation timestamp.</summary> |
| | 94 | 37 | | public DateTime CreatedAt { get; set; } |
| | | 38 | | |
| | | 39 | | /// <summary>Update timestamp, stamped by this operation.</summary> |
| | 94 | 40 | | public DateTime UpdatedAt { get; set; } |
| | | 41 | | } |