| | | 1 | | using AsiBackbone.Core.Actors; |
| | | 2 | | using AsiBackbone.Core.Entities; |
| | | 3 | | using AsiBackbone.Core.Handshakes; |
| | | 4 | | using AsiBackbone.Core.Serialization; |
| | | 5 | | |
| | | 6 | | namespace AsiBackbone.EntityFrameworkCore.Persistence; |
| | | 7 | | |
| | | 8 | | /// <summary> |
| | | 9 | | /// Represents the Entity Framework Core persistence shape for an AsiBackbone handshake request. |
| | | 10 | | /// </summary> |
| | | 11 | | public sealed class AsiBackboneHandshakeRequestEntity : AsiBackboneEntity |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the stable handshake identifier. |
| | | 15 | | /// </summary> |
| | 20 | 16 | | public string HandshakeId { get; set; } = string.Empty; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the serialized schema version for this handshake request. |
| | | 20 | | /// </summary> |
| | 20 | 21 | | public string SchemaVersion { get; set; } = AsiBackboneSchemaVersions.StableArtifactsV1; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the stable actor identifier associated with the handshake. |
| | | 25 | | /// </summary> |
| | 20 | 26 | | public string ActorId { get; set; } = string.Empty; |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets or sets the actor type associated with the handshake. |
| | | 30 | | /// </summary> |
| | 8 | 31 | | public AsiBackboneActorType ActorType { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the optional display name or label associated with the actor. |
| | | 35 | | /// </summary> |
| | 6 | 36 | | public string? ActorDisplayName { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets the operation name requiring acknowledgment. |
| | | 40 | | /// </summary> |
| | 20 | 41 | | public string OperationName { get; set; } = string.Empty; |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or sets the machine-readable reason code explaining why the handshake is required. |
| | | 45 | | /// </summary> |
| | 20 | 46 | | public string ReasonCode { get; set; } = string.Empty; |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets or sets the human-readable message explaining why the handshake is required. |
| | | 50 | | /// </summary> |
| | 20 | 51 | | public string Message { get; set; } = string.Empty; |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets the required acknowledgment code the host may display or require before execution. |
| | | 55 | | /// </summary> |
| | 20 | 56 | | public string RequiredAcknowledgmentCode { get; set; } = string.Empty; |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets or sets the required acknowledgment text the host may display before execution. |
| | | 60 | | /// </summary> |
| | 20 | 61 | | public string RequiredAcknowledgmentText { get; set; } = string.Empty; |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets the risk level associated with the handshake. |
| | | 65 | | /// </summary> |
| | 10 | 66 | | public LiabilityHandshakeRiskLevel RiskLevel { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets the optional host-defined risk category associated with the handshake. |
| | | 70 | | /// </summary> |
| | 6 | 71 | | public string? RiskCategory { get; set; } |
| | | 72 | | |
| | | 73 | | /// <summary> |
| | | 74 | | /// Gets or sets the correlation identifier associated with the handshake, when supplied by the host. |
| | | 75 | | /// </summary> |
| | 8 | 76 | | public string? CorrelationId { get; set; } |
| | | 77 | | |
| | | 78 | | /// <summary> |
| | | 79 | | /// Gets or sets the trace identifier associated with the handshake, when supplied by the host. |
| | | 80 | | /// </summary> |
| | 8 | 81 | | public string? TraceId { get; set; } |
| | | 82 | | |
| | | 83 | | /// <summary> |
| | | 84 | | /// Gets or sets the policy version associated with the handshake, when supplied by the host. |
| | | 85 | | /// </summary> |
| | 8 | 86 | | public string? PolicyVersion { get; set; } |
| | | 87 | | |
| | | 88 | | /// <summary> |
| | | 89 | | /// Gets or sets the policy hash associated with the handshake, when supplied by the host. |
| | | 90 | | /// </summary> |
| | 8 | 91 | | public string? PolicyHash { get; set; } |
| | | 92 | | } |