adding
This commit is contained in:
+33
@@ -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; }
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Text.Json.Serialization;
|
||||
using LCU.Library.Internal.DocumentModels.Converter;
|
||||
|
||||
namespace LCU.Library.Internal.DocumentModels.Responses;
|
||||
|
||||
public class DocumentInformationResponse
|
||||
{
|
||||
public Guid DocumentId { get; set; }
|
||||
public Guid? DocumentBlobId { get; set; }
|
||||
public Guid? TraceId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Source { get; set; }
|
||||
public string DataSource { get; set; }
|
||||
|
||||
[JsonConverter(typeof(BigIntegerConverter))]
|
||||
public BigInteger FileSize { get; set; }
|
||||
public bool? ScanStatus { get; set; }
|
||||
public DateTime UploadDate { get; set; }
|
||||
public DateTime? LastModifiedDate { get; set; }
|
||||
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public string[] PersonNumbers { get; set; }
|
||||
public string[] OrganizationNumbers { get; set; }
|
||||
public string AccountNumber { get; set; }
|
||||
public Dictionary<string, string> Attributes { get; set; }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
namespace LCU.Library.Internal.DocumentModels.Responses;
|
||||
|
||||
public class DocumentResponse
|
||||
{
|
||||
public byte[] Content { get; set; }
|
||||
public DocumentInformationResponse DocumentInformation { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user