using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using ModelData.BusinessModel.Tools;
using ModelData.BusinessModel.BaseAndInterface;
using ModelData.BusinessModel.ExtraEntities;

namespace ModelData.BusinessModel.MainEntities
{
    public class EditedSettlement : BaseOntologyEntity
    {

        public enum Enum_SettlementType
        {
            Не_определен,
            Город,
            Пригород
        }



        public Settlement before { set; get; }
        public Period hasBeginning { set; get; }

        public string src_settlementType { set; get; }
        public Enum_SettlementType settlementType
        {
            get
            {
                Enum_SettlementType res = Enum_SettlementType.Не_определен;

                Enum.TryParse<Enum_SettlementType>(src_settlementType, out res);                    
                                
                return res;                
            }
        }


        public DataSourseEntity data { set; get; }

    }
}
