This commit is contained in:
Zeeshaun
2026-03-13 09:11:35 -05:00
parent f004c8205a
commit c2d6bda458
197 changed files with 14970 additions and 0 deletions
@@ -0,0 +1,33 @@
using LCU.Library.Internal.DocumentModels.Requests;
using System;
using LCU.Library.Internal.DocumentModels.Converter;
namespace LCU.Library.Internal.DocumentModels.Responses;
[JsonKnownTypes(typeof(DocumentFieldAuditResponse), typeof(DocumentActionAuditResponse))]
[System.Text.Json.Serialization.JsonConverter(typeof(SystemPolymorphicJsonConverter<DocumentAuditResponse>))]
[Newtonsoft.Json.JsonConverter(typeof(NewtonsoftPolymorphicJsonConverter<DocumentAuditResponse>))]
public abstract class DocumentAuditResponse
{
public Guid DocumentId { get; set; }
public string Source { get; set; }
public DateTime Date { get; set; }
public string UserId { get; set; }
}
public class DocumentFieldAuditResponse : DocumentAuditResponse
{
public string Field { get; set; }
[Newtonsoft.Json.JsonConverter(typeof(DynamicObjectJsonConverter))]
public dynamic PreviousValue { get; set; }
[Newtonsoft.Json.JsonConverter(typeof(DynamicObjectJsonConverter))]
public dynamic CurrentValue { get; set; }
}
public class DocumentActionAuditResponse : DocumentAuditResponse
{
public DocumentAction Action { get; set; }
public string ActionDescription { get; set; }
}