using System;
using System.Collections.Generic;
using Qusion.Cms.Core.Domain;
using Qusion.WebApp.Areas.Qusion.Models.Classifications;

namespace Qusion.WebApp.Areas.Qusion.Models.Events
{
    public class EventListModel
    {
        private IList<LabelSimpleListModel> _labels = new List<LabelSimpleListModel>();
        private IList<EventUserEntry> _users = new List<EventUserEntry>();

        public Guid ID { get; set; }
        public bool AllDayEvent { get; set; }
        public string Title { get; set; }
        public string Summary { get; set; }
        public string ExternalLink { get; set; }
        public string Location { get; set; }
        public string CreatedBy { get; set; }
        public DateTime StartsOn { get; set; }
        public DateTime EndsOn { get; set; }
        public WorkflowStatus Status { get; set; }

        
        public IList<LabelSimpleListModel> Labels
        {
            get { return _labels; }
            set { _labels = value; }
        }

        public IList<EventUserEntry> EventUsers
        {
            get { return _users; }
            set { _users = value; }
        }

        public int UserCount
        {
            get { return EventUsers.Count; }
        }
    }
}