using System; using System.ComponentModel.DataAnnotations; namespace LCU.Library.Internal.DocumentIngestorModels.Models; [Obsolete("06/02/2023 - Used to prepare historical documents for ingestion. No longer in use.")] public class OsgPreprocessorRequest { private string workingBasePath; private string outputBasePath; private string incompleteOutputBasePath; [Required(ErrorMessage = "Archive Start Date is required")] public DateTime ArchiveStartDate { get; set; } public bool SaveXmlOutput { get; set; } = false; [Required(ErrorMessage = "Source Base Path is required")] public string SourceBasePath { get; set; } [Required(ErrorMessage = "Working Base Path is required")] public string WorkingBasePath { get { return workingBasePath; } set { workingBasePath = value.EndsWith("\\") ? value : $"{value}\\"; } } [Required(ErrorMessage = "Output Base Path is required")] public string OutputBasePath { get { return outputBasePath; } set { outputBasePath = value.EndsWith("\\") ? value : $"{value}\\"; } } [Required(ErrorMessage = "Incomplete Output Base Path is required")] public string IncompleteOutputBasePath { get { return incompleteOutputBasePath; } set { incompleteOutputBasePath = value.EndsWith("\\") ? value : $"{value}\\"; } } }