Files
monorepo/LCU.API.Internal.DocumentIngestor/LCU.Library.Internal.DocumentIngestorModels/Models/IngestorRequest.cs
T
2026-03-25 14:50:13 -05:00

45 lines
1.1 KiB
C#

using System.ComponentModel.DataAnnotations.Schema;
using LCU.Library.Internal.ApiResponse.Models;
using LCU.Library.Internal.DocumentIngestorModels.Enums;
namespace LCU.Library.Internal.DocumentIngestorModels.Models
{
public class IngestorRequest : ReturnResponse
{
private string rootPath;
private const string ArchiveFolder = "Archived";
public IngestorTypes IngestorType { get; set; }
public string RootPath
{
get
{
return rootPath;
}
set
{
rootPath = value.EndsWith("\\") ? value : $"{value}\\";
}
}
public string IndexFileName { get; set; }
[NotMapped]
public string ArchivePath
{
get
{
return $"{RootPath}{ArchiveFolder}\\";
}
}
[NotMapped]
public string FinalIndexFilePath
{
get
{
return RootPath + IndexFileName;
}
}
}
}