Created FileList with ability to set used files

This commit is contained in:
schnulller
2022-06-07 16:14:27 +02:00
parent 715cf167a0
commit d8155e26f6
44 changed files with 1468 additions and 119 deletions

View File

@@ -0,0 +1,5 @@
namespace HaDocument.Interfaces;
public interface IDocument {
}

View File

@@ -0,0 +1,8 @@
namespace HaDocument.Interfaces;
public interface IHaDocumentOptions {
string HamannXMLFilePath { get; set; }
string[] AvailableVolumes { get; set; }
bool NormalizeWhitespace { get; set; }
(int, int) AvailableYearRange { get; set; }
}

View File

@@ -0,0 +1,29 @@
namespace HaDocument.Interfaces;
using System;
using System.Collections.Immutable;
using HaDocument.Models;
using System.Linq;
public interface ILibrary {
IHaDocumentOptions Options { get; }
ImmutableDictionary<string, Tradition> Traditions { get; }
ImmutableDictionary<string, Person> Persons { get; }
ImmutableDictionary<string, Meta> Metas { get; }
ImmutableDictionary<string, Marginal> Marginals { get; }
ImmutableDictionary<string, Location> Locations { get; }
ImmutableDictionary<string, Letter> Letters { get; }
ImmutableDictionary<string, Person> HandPersons { get; }
ImmutableDictionary<string, Editreason> Editreasons { get; }
ImmutableDictionary<string, Comment> Comments { get; }
ImmutableDictionary<string, ImmutableList<Backlink>> Backlinks { get; }
ImmutableDictionary<string, ImmutableList<Hand>> Hands { get; }
ImmutableDictionary<string, ImmutableDictionary<string, ImmutableDictionary<string, string>>> Structure { get; }
ImmutableDictionary<string, Lookup<string, Comment>> CommentsByCategoryLetter { get; }
Lookup<string, Comment> CommentsByCategory { get; }
Lookup<string, Marginal> MarginalsByLetter { get; }
Lookup<string, Editreason> EditreasonsByLetter { get; }
ImmutableSortedSet<Meta> MetasByDate { get; }
ILookup<string, Meta> MetasByYear { get; }
ImmutableDictionary<string, Comment> SubCommentsByID { get; }
}