37 lines
790 B
C#
37 lines
790 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; }
|
|
public string Name { get; set; }
|
|
public int Alter { get; set; }
|
|
public int Geld { get; set; }
|
|
public User(string n, int a)
|
|
{
|
|
ID = ID_Generation();
|
|
Name = n;
|
|
Alter = a;
|
|
Geld = 1000;
|
|
}
|
|
public User(string id, string n, int a, int g)
|
|
{
|
|
ID = id;
|
|
Name = n;
|
|
Alter = a;
|
|
Geld = g;
|
|
}
|
|
|
|
private string ID_Generation()
|
|
{
|
|
Guid guid = Guid.NewGuid();
|
|
return guid.ToString();
|
|
}
|
|
}
|
|
}
|