using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Casino { public class User { public string ID { get; set; } public string Name { get; set; } public int Alter { get; set; } public string Passwort { get; set; } public decimal Geld { get; set; } public string Rolle { get; set; } public User(string name, int age, string passwort) { ID = ID_Generation(); Name = name; Alter = age; Passwort = passwort; Geld = 1000; Rolle = "User"; } public User(string id, string name, int age,string passwort, int geld, string rolle) { ID = id; Name = name; Alter = age; Passwort = passwort; Geld = geld; Rolle = rolle; } private string ID_Generation() { Guid guid = Guid.NewGuid(); return guid.ToString(); } } }