Interface added

This commit is contained in:
2023-06-06 15:29:57 +02:00
parent 208b81d5c7
commit 2e6217aea4
3 changed files with 22 additions and 5 deletions

View File

@@ -1,6 +1,10 @@
// See https://aka.ms/new-console-template for more information
using Schnittstelle.Import.XML.v2006;
using Schnittstelle.Contract;
using Schnittstelle.Import.XML.v2013;
using System.Diagnostics;
XML2006 xml = new XML2006("../../../../test_code.xml");
ISchnittstelleImporter xml = new XML2013("../../../../test_code.xml");
var s = xml.KanalObjekte;
Debugger.Break();

View File

@@ -0,0 +1,12 @@
using Schnittstelle.Import.XML.v2013.Model;
using System;
using System.Collections.Generic;
using System.Text;
namespace Schnittstelle.Contract
{
public interface ISchnittstelleImporter
{
List<KanalObjekt> KanalObjekte { get; }
}
}

View File

@@ -1,4 +1,5 @@
using Schnittstelle.Import.XML.v2013.Model;
using Schnittstelle.Contract;
using Schnittstelle.Import.XML.v2013.Model;
using System;
using System.Collections.Generic;
using System.IO;
@@ -9,9 +10,9 @@ using System.Xml;
namespace Schnittstelle.Import.XML.v2013
{
public class XML2013
public class XML2013 : ISchnittstelleImporter
{
private string xmlFile;
private string xmlFile = "";
private List<AbwassertechnischeAnlage> stammdaten = null;
private List<InspizierteAbwassertechnischeAnlage> inspektionsdaten = null;
private XmlNamespaceManager manager = null;