52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
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<OsgPreprocessorResult>();
|
|
Messages = new List<string>();
|
|
}
|
|
|
|
public OsgPreprocessorRequest OsgPreprocessorRequest { get; set; }
|
|
public List<OsgPreprocessorResult> 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<string> 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}\\";
|
|
}
|
|
}
|
|
} |