using System;
using System.Collections.Generic;

namespace Datalist
{
    public class DatalistFilter
    {
        public IList<String> Ids { get; set; }
        public IList<String> CheckIds { get; set; }
        public IList<String> Selected { get; set; }

        public String Search { get; set; }

        public Int32 Page { get; set; }
        public Int32 Rows { get; set; }
        public Int32 TotalRows { get; set; }

        public String Sort { get; set; }
        public DatalistSortOrder Order { get; set; }

        public IDictionary<String, Object> AdditionalFilters { get; set; }

        public DatalistFilter()
        {
            Rows = 20;
            Ids = new List<String>();
            CheckIds = new List<String>();
            Selected = new List<String>();
            AdditionalFilters = new Dictionary<String, Object>();
        }
    }
}
