45 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|