using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace LCU.Library.Internal.DocumentIngestorModels.Models; [Obsolete("06/02/2023 - Used to prepare historical documents for ingestion. No longer in use.")] public class OsgPreprocessorRunInfo { public OsgPreprocessorRunInfo(OsgPreprocessorRequest request) { OsgPreprocessorRequest = request; OsgPreprocessorResults = new List(); Messages = new List(); } public OsgPreprocessorRequest OsgPreprocessorRequest { get; set; } public List OsgPreprocessorResults { get; set; } public string UnZippedFolder { get; set; } public string DirectoryDate { get; set; } public string IndexFile { get; set; } public bool Incomplete { get; set; } = false; public bool HasStatements { get; set; } = true; public List Messages { get; set; } [NotMapped] public string FinalWorkingDirectory { get { return $"{OsgPreprocessorRequest.WorkingBasePath}{UnZippedFolder}\\"; } } [NotMapped] public string IndexFilePath { get { return FinalWorkingDirectory + IndexFile; } } [NotMapped] public string FinalOutputDirectory { get { return Incomplete ? OsgPreprocessorRequest.IncompleteOutputBasePath : $"{OsgPreprocessorRequest.OutputBasePath}{DirectoryDate}\\"; } } }