using Kendo.Mvc.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SchedulerBasicCore.Models
{
    public class ScheduleViewModel : ISchedulerEvent
    {
        private DateTime end;
        private DateTime start;
        public int EventId { get; set; }
        public int? RecurrenceId { get; set; }
        public string Timezone { get; set; }
        public DateTime Start
        {
            get
            {
                return start;
            }
            set
            {
                start = value.ToUniversalTime();
            }
        }

        public DateTime End
        {
            get
            {
                return end;
            }
            set
            {
                end = value.ToUniversalTime();
            }
        }

        public int EventType { get; set; }
        public int CompanyId { get; set; }
        public int? LocationId { get; set; }
        public int? AreaId { get; set; }
        public int? MaterialId { get; set; }
        public int? UserId { get; set; }
        public string EventDescription { get; set; }
        public bool SendEmail { get; set; }


        public string Title { get; set; }

        public int RoomID { get; set; }
        public string Description { get; set; }
        public bool IsAllDay { get; set; }
        public string StartTimezone { get; set; }
        public string EndTimezone { get; set; }
        public string RecurrenceRule { get; set; }
        public string RecurrenceException { get; set; }
    }
}
