57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
// See https://aka.ms/new-console-template for more information
|
|
|
|
class Kunde
|
|
{
|
|
string bestellungID = "";
|
|
Helper.Porto versandskosten;
|
|
string name;
|
|
string strasse;
|
|
string hausnummer;
|
|
string plz;
|
|
string ort;
|
|
string land;
|
|
List<Artikel> artikels = new List<Artikel>();
|
|
public string Bezahldatum { get; set; } = "";
|
|
|
|
public string Name { get => name; set => name = value; }
|
|
public string Strasse { get => strasse; set => strasse = value; }
|
|
public string Plz { get => plz; set => plz = value; }
|
|
public string Ort { get => ort; set => ort = value; }
|
|
public string Land { get => land; set => land = value; }
|
|
public string BestellungID { get => bestellungID; set => bestellungID = value; }
|
|
public Helper.Porto Versandskosten { get => versandskosten; set => versandskosten = value; }
|
|
public string Hausnummer { get => hausnummer; set => hausnummer = value; }
|
|
internal List<Artikel> Artikels { get => artikels; set => artikels = value; }
|
|
|
|
public Kunde(string Name, string Strasse, string Hausnummer, string PLZ, string Ort, string Land)
|
|
{
|
|
name = Name;
|
|
hausnummer = Hausnummer;
|
|
strasse = Strasse;
|
|
plz = PLZ;
|
|
ort = Ort;
|
|
land = Land;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
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;
|
|
}
|
|
|
|
*/ |