50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
namespace EnvelopeGenerator.Application.Common.Dto.PSPDFKitInstant;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class InstantData
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public List<Annotation>? Annotations { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public IEnumerable<List<Annotation>>? AnnotationsByReceiver
|
|
{
|
|
get
|
|
{
|
|
return Annotations?
|
|
.Where(a => a.HasStructuredID)
|
|
.GroupBy(a => a.ReceiverId)
|
|
.Select(g => g.ToList());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public IEnumerable<List<Annotation>>? UnstructuredAnnotations
|
|
{
|
|
get
|
|
{
|
|
return Annotations?
|
|
.Where(a => !a.HasStructuredID)
|
|
.GroupBy(a => a.ReceiverId)
|
|
.Select(g => g.ToList());
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public Dictionary<string, Attachment>? Attachments { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public List<FormFieldValue>? FormFieldValues { get; set; }
|
|
} |