Updated namespaces to align with the new DigitalData.Core structure, replacing `DigitalData.Core.Abstractions` with `DigitalData.Core.Application.Interfaces` and `DigitalData.Core.Client.Interface`. Removed the `IUnique<int>` interface from several DTOs, simplifying their design and altering the handling of entity identification. Updated project files to reflect new dependency versions for improved compatibility and features. Cleaned up using directives to remove obsolete references, enhancing code maintainability.
95 lines
2.6 KiB
C#
95 lines
2.6 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs;
|
|
|
|
/// <summary>
|
|
/// Data Transfer Object representing a positioned element assigned to a document receiver.
|
|
/// </summary>
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public class DocumentReceiverElementDto
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the unique identifier of the element.
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the identifier of the associated document.
|
|
/// </summary>
|
|
public int DocumentId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the identifier of the receiver.
|
|
/// </summary>
|
|
public int ReceiverId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the type of the element.
|
|
/// </summary>
|
|
public int ElementType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the X coordinate of the element.
|
|
/// </summary>
|
|
public double X { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Y coordinate of the element.
|
|
/// </summary>
|
|
public double Y { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the width of the element.
|
|
/// </summary>
|
|
public double Width { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the height of the element.
|
|
/// </summary>
|
|
public double Height { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the page number where the element appears.
|
|
/// </summary>
|
|
public int Page { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the element is required.
|
|
/// </summary>
|
|
public bool Required { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the tooltip text for the element.
|
|
/// </summary>
|
|
public string? Tooltip { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether the element is read-only.
|
|
/// </summary>
|
|
public bool ReadOnly { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the annotation index for ordering or reference.
|
|
/// </summary>
|
|
public int AnnotationIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the timestamp when the element was added.
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the timestamp when the element was last changed, if applicable.
|
|
/// </summary>
|
|
public DateTime? ChangedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the top position of the element (in layout terms).
|
|
/// </summary>
|
|
public double Top { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the left position of the element (in layout terms).
|
|
/// </summary>
|
|
public double Left { get; set; }
|
|
} |