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.
31 lines
796 B
C#
31 lines
796 B
C#
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs.Receiver;
|
|
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public class ReceiverReadDto
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string EmailAddress { get; set; }
|
|
|
|
public string Signature { get; set; }
|
|
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public IEnumerable<EnvelopeReceiverBasicDto>? EnvelopeReceivers { get; set; }
|
|
|
|
public string? LastUsedName => EnvelopeReceivers?.LastOrDefault()?.Name;
|
|
|
|
public string? TotpSecretkey { get; set; } = null;
|
|
|
|
public DateTime? TfaRegDeadline { get; set; }
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Id.GetHashCode();
|
|
}
|
|
} |