2023-09-22 22:04:15 +04:00

32 lines
803 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()
{
}
public Account(int id, string login, string town)
{
ID = id;
Login = login;
Town = town;
LoginTimes.Add(DateTime.Now);
LoginTimes.Add(DateTime.Today);
}
}
}