| | | 1 | | using AsiBackbone.Core.Actors; |
| | | 2 | | using AsiBackbone.Core.Entities; |
| | | 3 | | using AsiBackbone.Core.Serialization; |
| | | 4 | | |
| | | 5 | | namespace AsiBackbone.EntityFrameworkCore.Persistence; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents the Entity Framework Core persistence shape for an AsiBackbone handshake acknowledgment. |
| | | 9 | | /// </summary> |
| | | 10 | | public sealed class AsiBackboneHandshakeAcknowledgmentEntity : AsiBackboneEntity |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Gets or sets the stable acknowledgment identifier. |
| | | 14 | | /// </summary> |
| | 20 | 15 | | public string AcknowledgmentId { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets or sets the serialized schema version for this handshake acknowledgment. |
| | | 19 | | /// </summary> |
| | 20 | 20 | | public string SchemaVersion { get; set; } = AsiBackboneSchemaVersions.StableArtifactsV1; |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the handshake identifier associated with the acknowledgment. |
| | | 24 | | /// </summary> |
| | 22 | 25 | | public string HandshakeId { get; set; } = string.Empty; |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets or sets the stable actor identifier associated with the acknowledgment. |
| | | 29 | | /// </summary> |
| | 20 | 30 | | public string ActorId { get; set; } = string.Empty; |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Gets or sets the actor type associated with the acknowledgment. |
| | | 34 | | /// </summary> |
| | 8 | 35 | | public AsiBackboneActorType ActorType { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Gets or sets the optional display name or label associated with the actor. |
| | | 39 | | /// </summary> |
| | 6 | 40 | | public string? ActorDisplayName { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// Gets or sets the acknowledgment code accepted or rejected by the actor. |
| | | 44 | | /// </summary> |
| | 20 | 45 | | public string AcknowledgmentCode { get; set; } = string.Empty; |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Gets or sets a value indicating whether the required acknowledgment was accepted. |
| | | 49 | | /// </summary> |
| | 10 | 50 | | public bool Acknowledged { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// Gets or sets the UTC timestamp when the acknowledgment response occurred. |
| | | 54 | | /// </summary> |
| | 6 | 55 | | public DateTimeOffset OccurredUtc { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Gets or sets the correlation identifier associated with the acknowledgment, when supplied by the host. |
| | | 59 | | /// </summary> |
| | 8 | 60 | | public string? CorrelationId { get; set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets the trace identifier associated with the acknowledgment, when supplied by the host. |
| | | 64 | | /// </summary> |
| | 8 | 65 | | public string? TraceId { get; set; } |
| | | 66 | | } |