Alte Quellcode bestand wiederhergestellt

This commit is contained in:
Damian Wessels
2024-08-28 17:15:53 +02:00
parent 6c216ca189
commit b566b0a201
5 changed files with 115 additions and 51 deletions

View File

@@ -17,7 +17,6 @@ public static class Helper
}
internal static Kunde ConvertToKunde(string text)
{
string[] datas = text.Split("\r\n");
string name = datas[0];
string adresseUNDHausnummer = datas[datas.Length-3];
@@ -31,7 +30,7 @@ public static class Helper
datas = adresseUNDHausnummer.Split(" ");
string strasse = "";
string hausnummer = "";
Trace.WriteLine(datas.Length);
//Trace.WriteLine(datas.Length);
if (datas.Length <= 1)
{
Regex myRegex = new Regex("[0-9]*$");
@@ -49,7 +48,6 @@ public static class Helper
hausnummer = datas[datas.Length - 1];
}
return new Kunde(name, strasse, hausnummer, plz, ort, land);
}
public static List<Artikel> ParseArtikeln(string text)
@@ -105,7 +103,7 @@ public static class Helper
temp.Source = datas[j];
}
}
Trace.WriteLine(j + " " + datas[j]);
//Trace.WriteLine(j + " " + datas[j]);
}
else
{
@@ -129,26 +127,4 @@ public static class Helper
return DateTime.Parse(string.Format("{0} {1}", datum, uhrzeit));
}
}
/*
HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(@"https://www.cardmarket.com/de/OnePiece/Orders/Sales/Paid");
hwr.CookieContainer = cookieContainer;
hwr.Method = "GET";
hwr.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36";
WebResponse wr = hwr.GetResponse();
string s = new StreamReader(wr.GetResponseStream()).ReadToEnd();
Console.WriteLine(s);
string GetHashKey(string line)
{
var x = line.IndexOf("__cmtkn");
var d = line.Substring(x + 16);
var m = d.IndexOf("\"");
var a = d.Substring(0, m);
return a;
}
*/
}