2023-09-22 01:36:57 +04:00
|
|
|
|
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;
|
|
|
|
|
|
2023-09-22 03:59:56 +04:00
|
|
|
|
public Account()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2023-09-22 01:36:57 +04:00
|
|
|
|
public Account(int id, string login, string town)
|
|
|
|
|
{
|
|
|
|
|
ID = id;
|
|
|
|
|
Login = login;
|
|
|
|
|
Town = town;
|
|
|
|
|
LoginTimes.Add(DateTime.Now);
|
2023-09-22 22:04:15 +04:00
|
|
|
|
LoginTimes.Add(DateTime.Today);
|
2023-09-22 01:36:57 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|