27 lines
837 B
C#
27 lines
837 B
C#
using DigitalData.Core.Abstractions;
|
|
using DigitalData.Core.DTO;
|
|
using DigitalData.EmailProfilerDispatcher.Abstraction.Attributes;
|
|
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs.Receiver;
|
|
|
|
public record ReceiverReadDto(
|
|
int Id,
|
|
string EmailAddress,
|
|
string Signature,
|
|
DateTime AddedWhen
|
|
) : BaseDTO<int>(Id), IUnique<int>
|
|
{
|
|
[JsonIgnore]
|
|
public IEnumerable<EnvelopeReceiverBasicDto>? EnvelopeReceivers { get; init; }
|
|
|
|
public string? LastUsedName => EnvelopeReceivers?.LastOrDefault()?.Name;
|
|
|
|
public string? TotpSecretkey { get; set; } = null;
|
|
|
|
[TemplatePlaceholder("[TFA_QR_EXPIRATION]")]
|
|
public DateTime? TotpExpiration { get; set; } = null;
|
|
|
|
public DateTime? TfaRegDeadline { get; set; }
|
|
}; |