using System;

using BS.Shared;

namespace BeWo.Scheduler
{
    public class SchedulerSettings
    {
        public SchedulerSettings(AppointmentKind kind, AppointmentViewType viewType)
        {
            Kind = kind;
            ViewType = viewType;
            DayViewCount = 1;
            TimelineIntervalCount = 31;
            GroupByResource = false;
            TimelineResourceCount = 20;
            StartDate = DateTime.Now;
            AllowEdit = true;
            AllowDelete = true;
            AllowCreateNew = true;
            AllowChangeResource = false;
        }

        public bool AllowEdit { get; set; }

        public bool AllowCreateNew { get; set; }

        public bool AllowDelete { get; set; }

        public bool AllowChangeResource { get; set; }

        public DateTime StartDate { get; set; }

        public AppointmentKind Kind { get; set; }

        public AppointmentViewType ViewType { get; set; }

        public int DayViewCount { get; set; }

        public int TimelineIntervalCount { get; set; }

        public bool GroupByResource { get; set; }

        public int TimelineResourceCount { get; set; }
    }
}
