21 lines
630 B
C#
21 lines
630 B
C#
using DigitalData.Core.DTO;
|
|
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,
|
|
string? TotpSecretkey = null,
|
|
DateTime? TotpExpiration = null
|
|
) : BaseDTO<int>(Id)
|
|
{
|
|
[JsonIgnore]
|
|
public IEnumerable<EnvelopeReceiverBasicDto>? EnvelopeReceivers { get; init; }
|
|
|
|
public string? LastUsedName => EnvelopeReceivers?.LastOrDefault()?.Name;
|
|
};
|
|
} |