2025-11-07 11:37:28 +01:00

32 lines
834 B
C#

namespace EnvelopeGenerator.Application.Pdf.PSPDFKitModels;
internal class InstantData
{
public List<Annotation>? Annotations { get; set; }
public IEnumerable<List<Annotation>>? AnnotationsByReceiver
{
get
{
return Annotations?
.Where(a => a.HasStructuredID)
.GroupBy(a => a.ReceiverId)
.Select(g => g.ToList());
}
}
public IEnumerable<List<Annotation>>? UnstructuredAnnotations
{
get
{
return Annotations?
.Where(a => !a.HasStructuredID)
.GroupBy(a => a.ReceiverId)
.Select(g => g.ToList());
}
}
public Dictionary<string, Attachment>? Attachments { get; set; }
public List<FormFieldValue>? FormFieldValues { get; set; }
}