From 6672b902b04c31299a3433936e2dbf6631a0c31d Mon Sep 17 00:00:00 2001 From: TekH Date: Sun, 31 May 2026 22:26:20 +0200 Subject: [PATCH] Make AnnotationDto properties non-nullable Changed the `Page` property from `int?` to `int` to ensure it always has a value. Similarly, changed the `X` and `Y` properties from `double?` to `double` to enforce non-nullable values for horizontal and vertical positions. --- EnvelopeGenerator.ReceiverUI/Models/AnnotationDto.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.ReceiverUI/Models/AnnotationDto.cs b/EnvelopeGenerator.ReceiverUI/Models/AnnotationDto.cs index 642cc6a9..fcc48e9b 100644 --- a/EnvelopeGenerator.ReceiverUI/Models/AnnotationDto.cs +++ b/EnvelopeGenerator.ReceiverUI/Models/AnnotationDto.cs @@ -19,11 +19,11 @@ public record AnnotationDto public long Id { get; init; } /// 1-based page number within the document. - public int? Page { get; init; } + public int Page { get; init; } /// Horizontal position in hundredths of an inch from the left edge of the page. - public double? X { get; init; } + public double X { get; init; } /// Vertical position in hundredths of an inch from the top edge of the page. - public double? Y { get; init; } + public double Y { get; init; } }