using RealEstateTransactions.Entities.Enums;

namespace RealEstateTransactions.Entities
{
    public class Apartment
    {
        public int Id { get; private set; }

        public AgencyType Agency_ID { get; private set; }

        public FormFactorType Form_factor_ID { get; private set; }

        public float Area { get; private set; }

        public float Price_per_SM { get; private set; }

        public float Base_price { get; private set; }

        public float Desired_price { get; private set; }

        public static Apartment CreateApartment(int id, AgencyType agencyId, FormFactorType formFactorId, float area,
            float pricePerSM, float basePrice, float desiredPrice)
        {
            return new Apartment
            {
                Id = id,
                Agency_ID = agencyId,
                Form_factor_ID = formFactorId,
                Area = area,
                Price_per_SM = pricePerSM,
                Base_price = basePrice,
                Desired_price = desiredPrice
            };
        }
    }
}