2024-10-28 11:18:20 +04:00
|
|
|
|
using Microsoft.VisualBasic.FileIO;
|
2024-11-03 16:04:27 +04:00
|
|
|
|
using ProjectFamilyBudget.Entities.Enums;
|
2024-10-28 11:18:20 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectFamilyBudget.Entities;
|
|
|
|
|
|
|
|
|
|
public class People
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
2024-11-03 16:04:27 +04:00
|
|
|
|
public string Name { get; private set; } = string.Empty;
|
|
|
|
|
public int Age { get; private set; }
|
2024-10-28 11:18:20 +04:00
|
|
|
|
public int FamilyId { get; private set; }
|
2024-11-03 16:04:27 +04:00
|
|
|
|
public FamilyMemberType MemberType { get; private set; }
|
|
|
|
|
public static People CreatePeople(int id, string name, int age, int familyId, FamilyMemberType memberType)
|
2024-10-28 11:18:20 +04:00
|
|
|
|
{
|
|
|
|
|
return new People
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-03 16:04:27 +04:00
|
|
|
|
Name = name,
|
|
|
|
|
Age = age,
|
|
|
|
|
FamilyId = familyId,
|
|
|
|
|
MemberType = memberType
|
2024-10-28 11:18:20 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|