add InstantData

This commit is contained in:
tekh 2025-11-07 11:37:28 +01:00
parent 5784cc7a97
commit 7233d2ce98

View File

@ -0,0 +1,32 @@
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; }
}