Creaded Upload Interface; Also added Wrapper around HaDocument to reload the Document

This commit is contained in:
schnulller
2022-06-04 23:18:40 +02:00
parent 37b794ea05
commit 9712574e13
21 changed files with 1043 additions and 268 deletions

View File

@@ -2,7 +2,18 @@ namespace HaWeb.Models;
using HaWeb.XMLParser;
public class UploadViewModel {
public List<IXMLRoot>? AvailableRoots { get; set; }
public List<XMLRootDocument>? AvailableFiles { get; set; }
public Dictionary<string, List<XMLRootDocument>>? UsedFiles { get; set; }
public string ActiveTitle { get; private set; }
public string? Prefix { get; private set; }
public List<IXMLRoot>? AvailableRoots { get; private set; }
public List<XMLRootDocument>? AvailableFiles { get; private set; }
public Dictionary<string, List<XMLRootDocument>>? UsedFiles { get; private set; }
public UploadViewModel(string title, string? prefix, List<IXMLRoot>? roots, List<XMLRootDocument>? availableFiles, Dictionary<string, List<XMLRootDocument>>? usedFiles) {
Prefix = prefix;
ActiveTitle = title;
AvailableRoots = roots;
AvailableFiles = availableFiles;
UsedFiles = usedFiles;
}
}