using System.Collections.Generic;

namespace BS.Shared.Core
{
    public class WohnheimbuchungsIntervall
    {
        public long RelationOid { get; set; }
        public DateTimeSpan Span { get; set; }
        public WohnheimbuchungsintervallTyp Typ { get; set; }
        public List<long> RelatedObjects { get; set; }

        public WohnheimbuchungsIntervall(long pRelationOid, DateTimeSpan pSpan, WohnheimbuchungsintervallTyp pTyp, List<long> pRelatedObjects)
        {
            RelatedObjects = pRelatedObjects ?? new List<long>();
            RelationOid = pRelationOid;
            Span = pSpan;
            Typ = pTyp;
        }
    }
}