Files
WIR-MACHEN-ALLE-ARM/Casino/User.cs
T
2026-09-14 21:27:58 +02:00

44 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Casino
{
public class User // Lenard Gerdes
{
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();
}
}
}