27 lines
713 B
C#
27 lines
713 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace CustomComponents.Classes
|
|||
|
{
|
|||
|
public class Account
|
|||
|
{
|
|||
|
public int ID { get; private set; }
|
|||
|
public string Login { get; private set; } = string.Empty;
|
|||
|
public List<DateTime> LoginTimes { get; private set; } = new();
|
|||
|
public string Town { get; private set; } = string.Empty;
|
|||
|
public DateTime CreationDate { get; private set; } = DateTime.Now;
|
|||
|
|
|||
|
public Account(int id, string login, string town)
|
|||
|
{
|
|||
|
ID = id;
|
|||
|
Login = login;
|
|||
|
Town = town;
|
|||
|
LoginTimes.Add(DateTime.Now);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|