Refactored the `AnnotationCreateDto` class: - Changed `ElementId` from `int` to `long` and made it mutable. - Marked `Name`, `Value`, and `Type` as `[Obsolete]` with defaults. - Added `[Obsolete]` attributes to `Width` and `Height`. - Introduced a new `Page` property to replace `SignatureDto`. Updated `appsettings.json`: - Set `Api.BaseUrl` to an empty string.
89 lines
1.8 KiB
C#
89 lines
1.8 KiB
C#
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public record AnnotationCreateDto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public int ElementId { get; init; } = -1;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public string Name { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public string Value { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public string Type { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public double? X { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public double? Y { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public double? Width { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[Obsolete("Not required for DevExpress")]
|
|
public double? Height { get; init; }
|
|
|
|
/// <summary>
|
|
/// Added to eliminate the need for SignatureDto in DevExpress
|
|
/// </summary>
|
|
public int? Page { get; init; }
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public record AnnotationDto : AnnotationCreateDto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public long Id { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public DateTime? ChangedWhen { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string? ChangedWho { get; init; }
|
|
} |