Files
WIR-MACHEN-ALLE-ARM/Casino/User.cs
T

40 lines
970 B
C#

using System;
using System.Collections.Generic;
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 User(string name, int age, string passwort)
{
ID = ID_Generation();
Name = name;
Alter = age;
Passwort = passwort;
Geld = 1000;
}
public User(string id, string name, int age,string passwort, int geld)
{
ID = id;
Name = name;
Alter = age;
Passwort = passwort;
Geld = geld;
}
private string ID_Generation()
{
Guid guid = Guid.NewGuid();
return guid.ToString();
}
}
}