mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Added generic collections of objects. TODO: deserialization of metadata
This commit is contained in:
20
HaWeb/Models/CollectedItem.cs
Normal file
20
HaWeb/Models/CollectedItem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace HaWeb.Models;
|
||||
using HaWeb.SearchHelpers;
|
||||
using HaWeb.XMLParser;
|
||||
using System.Xml.Linq;
|
||||
|
||||
public class CollectedItem : ISearchable {
|
||||
public string Index { get; private set; }
|
||||
public string Collection { get; private set; }
|
||||
public string? SearchText { get; private set; }
|
||||
public XElement ELement { get; private set; }
|
||||
public IXMLRoot Root { get; private set; }
|
||||
|
||||
public CollectedItem(string index, XElement element, IXMLRoot root, string collection, string? searchtext = null) {
|
||||
this.Index = index;
|
||||
this.SearchText = searchtext;
|
||||
this.Collection = collection;
|
||||
this.Root = root;
|
||||
this.ELement = element;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user