using System;
using System.Collections.Generic;
using Qusion.Cms.Core.Domain;
using Qusion.Cms.Site;

namespace Qusion.WebApp.Areas.Qusion.Models.Pages
{
    public sealed class PageListModel
    {
        private IList<PageListModel> _list = new List<PageListModel>();
        public Guid ID { get; set; }
        public string Alias { get; set; }
        public string Title { get; set; }
        public bool IsRoot { get; set; }
        public bool AllowAnonymous { get; set; }
        public string MenuName { get; set; }
        public string ExternalUrl { get; set; }
        public string Description { get; set; }
        public WorkflowStatus Status { get; set; }
        public PageType PageType { get; set; }
        public bool Navigable { get; set; }
        public int Ordinal { get; set; }
        public Guid? ParentID { get; set; }
        public bool HasChildren { get; set; }

        public IList<PageListModel> Children
        {
            get {return _list;}
            set { _list = value; }
        }
    }
}