From 9cbcc04a7e59131c86029b5b95cff7a424154d89 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Tue, 1 Jul 2025 21:57:26 +0200 Subject: [PATCH] [file:] initial DataStructures (unfinished, stable) --- DataStructures.cs | 120 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 DataStructures.cs diff --git a/DataStructures.cs b/DataStructures.cs new file mode 100644 index 0000000..99ca00a --- /dev/null +++ b/DataStructures.cs @@ -0,0 +1,120 @@ +using System.Collections.Generic; +namespace Logof_Client; + +public class KasAddressList +{ + public List KasPersons; + + public KasAddressList() + { + KasPersons = new List(); + } + +} + +public class KasPerson +{ + public int refsid { get; set; } + public string anrede { get; set; } + public string titel { get; set; } + public string vorname { get; set; } + public string adel { get; set; } + public string name { get; set; } + public string namezus { get; set; } + public string anredzus { get; set; } + public string strasse { get; set; } + public string strasse2 { get; set; } + public int plz { get; set; } + public string ort { get; set; } + public string land { get; set; } + public string pplz { get; set; } + public string postfach { get; set; } + public string name1 { get; set; } + public string name2 { get; set; } + public string name3 { get; set; } + public string name4 { get; set; } + public string name5 { get; set; } + public string funktion { get; set; } + public string funktion2 { get; set; } + public string abteilung { get; set; } + public string funktionad { get; set; } + + public KasPerson() + { + refsid = 0; + anrede = ""; + titel = ""; + vorname = ""; + adel = ""; + name = ""; + namezus = ""; + anredzus = ""; + strasse = ""; + strasse2 = ""; + plz = 0; + ort = ""; + land = ""; + pplz = ""; + postfach = ""; + name1 = ""; + name2 = ""; + name3 = ""; + name4 = ""; + name5 = ""; + funktion = ""; + funktion2 = ""; + abteilung = ""; + funktionad = ""; + } + public KasPerson(int refsid, + string anrede, + string titel, + string vorname, + string adel, + string name, + string namezus, + string anredzus, + string strasse, + string strasse2, + int plz, + string ort, + string land, + string pplz, + string postfach, + string name1, + string name2, + string name3, + string name4, + string name5, + string funktion, + string funktion2, + string abteilung, + string funktionad) + { + this.refsid = refsid; + this.anrede = anrede; + this.titel = titel; + this.vorname = vorname; + this.adel = adel; + this.name = name; + this.namezus = namezus; + this.anredzus = anredzus; + this.strasse = strasse; + this.strasse2 = strasse2; + this.plz = plz; + this.ort = ort; + this.land = land; + this.pplz = pplz; + this.postfach = postfach; + this.name1 = name1; + this.name2 = name2; + this.name3 = name3; + this.name4 = name4; + this.name5 = name5; + this.funktion = funktion; + this.funktion2 = funktion2; + this.abteilung = abteilung; + this.funktionad = funktionad; + } +} +