using Kreta.Core.KIR.Domain.Model.KirExport;

namespace Kreta.Core.Domain
{
    public class KirCim
    {
        public int FelhasznaloId { get; set; }
        public string Iranyitoszam { get; set; }
        public string Varos { get; set; }
        public string KozteruletNev { get; set; }
        public string KozteruletJellege { get; set; }
        public string Hazszam { get; set; }

        public static implicit operator KirCim(CimModel cimModel) => new KirCim
        {
            Iranyitoszam = cimModel?.Iranyitoszam,
            Varos = cimModel?.Telepules,
            KozteruletNev = cimModel?.KozteruletNev,
            KozteruletJellege = cimModel?.KozteruletJellege,
            //AllandoLakcimPontositas = cimModel.Pontositas,
            Hazszam = cimModel?.Hazszam
        };
    }
}